diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-02-22 23:41:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 23:41:26 -0800 |
commit | 65624dbfc28442b58145215f524eb13aeb2cadf6 (patch) | |
tree | 1ee1ce54ab6e238d38aeeb160ff4571f16f3da56 | |
parent | b34fdf62341a01abb8da021f07071c5eb8b06622 (diff) | |
parent | 1a30c98f5f06c87e201e62775be496ea445f7834 (diff) | |
download | servo-65624dbfc28442b58145215f524eb13aeb2cadf6.tar.gz servo-65624dbfc28442b58145215f524eb13aeb2cadf6.zip |
Auto merge of #15692 - servo:moz-table-border-nonzero, r=upsuper
Stylo: add :-moz-table-border-nonzero pseudo-class.
<!-- 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. -->
<!-- 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/15692)
<!-- Reviewable:end -->
-rw-r--r-- | components/style/gecko/non_ts_pseudo_class_list.rs | 1 | ||||
-rw-r--r-- | components/style/gecko/wrapper.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/components/style/gecko/non_ts_pseudo_class_list.rs b/components/style/gecko/non_ts_pseudo_class_list.rs index a019484e902..b9c109f3187 100644 --- a/components/style/gecko/non_ts_pseudo_class_list.rs +++ b/components/style/gecko/non_ts_pseudo_class_list.rs @@ -46,4 +46,5 @@ pseudo_class_list! { ("read-only", ReadOnly, _, IN_READ_WRITE_STATE, _), ("-moz-browser-frame", MozBrowserFrame, mozBrowserFrame, _, PSEUDO_CLASS_INTERNAL), + ("-moz-table-border-nonzero", MozTableBorderNonzero, mozTableBorderNonzero, _, PSEUDO_CLASS_INTERNAL), } diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 19b8ca7a7dc..09c1d1accd4 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -621,6 +621,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> { !self.get_state().contains(pseudo_class.state_flag()) } + NonTSPseudoClass::MozTableBorderNonzero | NonTSPseudoClass::MozBrowserFrame => unsafe { Gecko_MatchesElement(pseudo_class.to_gecko_pseudoclasstype().unwrap(), self.0) } |