diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-05-01 23:52:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-01 23:52:36 -0500 |
commit | f284a15e4b442b1beff90b88e9ba6952255f394a (patch) | |
tree | 1d6b89de668d63ee06f2a1b20473102a06a5a096 /components | |
parent | 49e055264d6258139a6a17a5d77653bebfb04e80 (diff) | |
parent | 81fdd0bfc8483e10fa0e351998777b28a4266a0e (diff) | |
download | servo-f284a15e4b442b1beff90b88e9ba6952255f394a.tar.gz servo-f284a15e4b442b1beff90b88e9ba6952255f394a.zip |
Auto merge of #16686 - aethanyc:bug1321754, r=heycam
stylo: Parse eSafeAgentSheetFeatures as agent sheet
This was reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1321754
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16686)
<!-- Reviewable:end -->
Diffstat (limited to 'components')
-rw-r--r-- | components/style/gecko_bindings/structs_debug.rs | 10 | ||||
-rw-r--r-- | components/style/gecko_bindings/structs_release.rs | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/components/style/gecko_bindings/structs_debug.rs b/components/style/gecko_bindings/structs_debug.rs index 07ef42a67ea..cdb6a538892 100644 --- a/components/style/gecko_bindings/structs_debug.rs +++ b/components/style/gecko_bindings/structs_debug.rs @@ -5293,18 +5293,28 @@ pub mod root { * exposure on the public Web, but are very useful for expressing * user style overrides, such as @-moz-document rules. * + * XXX: eUserSheetFeatures was added in bug 1035091, but some patches in + * that bug never landed to use this enum value. Currently, all the features + * in user sheet are also available in author sheet. + * * Agent sheets have access to all author- and user-sheet features * plus more extensions that are necessary for internal use but, * again, not yet suitable for exposure on the public Web. Some of * these are outright unsafe to expose; in particular, incorrect * styling of anonymous box pseudo-elements can violate layout * invariants. + * + * Agent sheets that do not use any unsafe rules could use + * eSafeAgentSheetFeatures when creating the sheet. This enum value allows + * Servo backend to recognize the sheets as the agent level, but Gecko + * backend will parse it under _author_ level. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum SheetParsingMode { eAuthorSheetFeatures = 0, eUserSheetFeatures = 1, eAgentSheetFeatures = 2, + eSafeAgentSheetFeatures = 3, } #[repr(C)] #[derive(Debug, Copy, Clone)] diff --git a/components/style/gecko_bindings/structs_release.rs b/components/style/gecko_bindings/structs_release.rs index 67c2e89d583..f4f43100bc4 100644 --- a/components/style/gecko_bindings/structs_release.rs +++ b/components/style/gecko_bindings/structs_release.rs @@ -5222,18 +5222,28 @@ pub mod root { * exposure on the public Web, but are very useful for expressing * user style overrides, such as @-moz-document rules. * + * XXX: eUserSheetFeatures was added in bug 1035091, but some patches in + * that bug never landed to use this enum value. Currently, all the features + * in user sheet are also available in author sheet. + * * Agent sheets have access to all author- and user-sheet features * plus more extensions that are necessary for internal use but, * again, not yet suitable for exposure on the public Web. Some of * these are outright unsafe to expose; in particular, incorrect * styling of anonymous box pseudo-elements can violate layout * invariants. + * + * Agent sheets that do not use any unsafe rules could use + * eSafeAgentSheetFeatures when creating the sheet. This enum value allows + * Servo backend to recognize the sheets as the agent level, but Gecko + * backend will parse it under _author_ level. */ #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum SheetParsingMode { eAuthorSheetFeatures = 0, eUserSheetFeatures = 1, eAgentSheetFeatures = 2, + eSafeAgentSheetFeatures = 3, } #[repr(C)] #[derive(Debug, Copy, Clone)] |