mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #18659 - emilio:unship-stuff, r=xidorn
stylo: unship some stuff. <!-- 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/18659) <!-- Reviewable:end -->
This commit is contained in:
commit
7574d26476
5 changed files with 905 additions and 1452 deletions
|
@ -1548,8 +1548,7 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Gecko_MatchStringArgPseudo(element: RawGeckoElementBorrowed,
|
||||
type_: CSSPseudoClassType,
|
||||
ident: *const u16,
|
||||
set_slow_selector: *mut bool) -> bool;
|
||||
ident: *const u16) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_AddPropertyToSet(arg1: nsCSSPropertyIDSetBorrowedMut,
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -59,8 +59,7 @@ macro_rules! apply_non_ts_list {
|
|||
("-moz-drag-over", MozDragOver, mozDragOver, IN_DRAGOVER_STATE, _),
|
||||
("target", Target, target, IN_TARGET_STATE, _),
|
||||
("indeterminate", Indeterminate, indeterminate, IN_INDETERMINATE_STATE, _),
|
||||
// FIXME(emilio): Unship this for content docs (bug 1396073).
|
||||
("-moz-devtools-highlighted", MozDevtoolsHighlighted, mozDevtoolsHighlighted, IN_DEVTOOLS_HIGHLIGHTED_STATE, _),
|
||||
("-moz-devtools-highlighted", MozDevtoolsHighlighted, mozDevtoolsHighlighted, IN_DEVTOOLS_HIGHLIGHTED_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
||||
// FIXME(emilio): Unship this for content docs (bug 1396073).
|
||||
("-moz-styleeditor-transitioning", MozStyleeditorTransitioning, mozStyleeditorTransitioning, IN_STYLEEDITOR_TRANSITIONING_STATE, _),
|
||||
("fullscreen", Fullscreen, fullscreen, IN_FULLSCREEN_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME),
|
||||
|
@ -120,9 +119,6 @@ macro_rules! apply_non_ts_list {
|
|||
string: [
|
||||
// FIXME(emilio): Unship this for content docs (bug 1396066).
|
||||
("-moz-system-metric", MozSystemMetric, mozSystemMetric, _, _),
|
||||
// FIXME(emilio): Unship this for content docs (bug 1396073).
|
||||
("-moz-empty-except-children-with-localname", MozEmptyExceptChildrenWithLocalname,
|
||||
mozEmptyExceptChildrenWithLocalname, _, _),
|
||||
("lang", Lang, lang, _, _),
|
||||
],
|
||||
keyword: [
|
||||
|
|
|
@ -1970,17 +1970,13 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
}
|
||||
NonTSPseudoClass::MozSystemMetric(ref s) |
|
||||
NonTSPseudoClass::MozLocaleDir(ref s) |
|
||||
NonTSPseudoClass::MozEmptyExceptChildrenWithLocalname(ref s) |
|
||||
NonTSPseudoClass::Dir(ref s) => {
|
||||
unsafe {
|
||||
let mut set_slow_selector = false;
|
||||
let matches = Gecko_MatchStringArgPseudo(self.0,
|
||||
pseudo_class.to_gecko_pseudoclasstype().unwrap(),
|
||||
s.as_ptr(), &mut set_slow_selector);
|
||||
if set_slow_selector {
|
||||
flags_setter(self, HAS_SLOW_SELECTOR);
|
||||
}
|
||||
matches
|
||||
Gecko_MatchStringArgPseudo(
|
||||
self.0,
|
||||
pseudo_class.to_gecko_pseudoclasstype().unwrap(),
|
||||
s.as_ptr(),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue