Closed Bug 1602317 Opened 6 years ago Closed 6 years ago

Use nicer cbindgen bitflags.

Categories

(Core :: CSS Parsing and Computation, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(5 files)

Now that we use C++17, we can use inline const.

This is closer to the equivalent Rust code.

Assignee: nobody → emilio

Now that we have C++17, and thus inline const, we can do this.

Depends on D56306

This includes more bitflag operators, which means we can remove some slightly
ugly code.

This also removes some unused members and such, and fixes some missing includes
that they uncover (whoops).

This is needed because some windows headers used in the sandbox redefine STRICT
(which is used by StyleContain) and TRANSPARENT, which is used by some WR
stuff.

Blocks: 1602358

I couldn't get some Windows sandbox code to build with the other patch in this
bug.

Attachment #9114460 - Attachment description: Bug 1602317 - Fix windows build by avoiding some problematic includes. r=heycam → Bug 1602317 - Remove some useless includes. r=heycam
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c2b364c2133 More reliably workaround some silly windows.h defines. r=nical
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b278f7aa894e Switch style system to associated constants-in-body. r=heycam https://hg.mozilla.org/integration/autoland/rev/73ea4471a43d Switch WR bindings to use associated-constants-in-body. r=jrmuizel
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/297a4463b26d Add a missing include in OSReauthenticator to unbust win builds. a=malexandru
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: