servo: Merge #15692 - Stylo: add :-moz-table-border-nonzero pseudo-class (from servo:moz-table-border-nonzero); r=upsuper
authorSimon Sapin <simon.sapin@exyr.org>
Wed, 22 Feb 2017 23:41:26 -0800
changeset 373514 01576df5792ab71fe72a5481e77216309e12b208
parent 373513 58659a84e538f102d76fd2a142dc15834d23dcb7
child 373515 24ba72b5661d18174c993c693ac3e9b8445f947a
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersupsuper
bugs15692, 1340696
milestone54.0a1
servo: Merge #15692 - Stylo: add :-moz-table-border-nonzero pseudo-class (from servo:moz-table-border-nonzero); r=upsuper <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1340696 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 65624dbfc28442b58145215f524eb13aeb2cadf6
servo/components/style/gecko/non_ts_pseudo_class_list.rs
servo/components/style/gecko/wrapper.rs
--- a/servo/components/style/gecko/non_ts_pseudo_class_list.rs
+++ b/servo/components/style/gecko/non_ts_pseudo_class_list.rs
@@ -41,9 +41,10 @@ pseudo_class_list! {
     ("enabled", Enabled, enabled, IN_ENABLED_STATE, _),
     ("disabled", Disabled, disabled, IN_DISABLED_STATE, _),
     ("checked", Checked, checked, IN_CHECKED_STATE, _),
     ("indeterminate", Indeterminate, indeterminate, IN_INDETERMINATE_STATE, _),
     ("read-write", ReadWrite, _, IN_READ_WRITE_STATE, _),
     ("read-only", ReadOnly, _, IN_READ_WRITE_STATE, _),
 
     ("-moz-browser-frame", MozBrowserFrame, mozBrowserFrame, _, PSEUDO_CLASS_INTERNAL),
+    ("-moz-table-border-nonzero", MozTableBorderNonzero, mozTableBorderNonzero, _, PSEUDO_CLASS_INTERNAL),
 }
--- a/servo/components/style/gecko/wrapper.rs
+++ b/servo/components/style/gecko/wrapper.rs
@@ -616,16 +616,17 @@ impl<'le> ::selectors::Element for Gecko
             NonTSPseudoClass::Fullscreen |
             NonTSPseudoClass::Indeterminate => {
                 self.get_state().contains(pseudo_class.state_flag())
             },
             NonTSPseudoClass::ReadOnly => {
                 !self.get_state().contains(pseudo_class.state_flag())
             }
 
+            NonTSPseudoClass::MozTableBorderNonzero |
             NonTSPseudoClass::MozBrowserFrame => unsafe {
                 Gecko_MatchesElement(pseudo_class.to_gecko_pseudoclasstype().unwrap(), self.0)
             }
         }
     }
 
     fn get_id(&self) -> Option<Atom> {
         let ptr = unsafe {