diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-07-20 13:58:07 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-08-09 18:17:13 +0200 |
commit | f419db834c9554ebb3e8a1b4af359f9da2c1d409 (patch) | |
tree | 00b6a632671220a499389f6b61f6aa9bc87955ed /components/style/servo_selector_impl.rs | |
parent | 3b676bc85dc66ed0e80756204f347bf1842b01a0 (diff) | |
download | servo-f419db834c9554ebb3e8a1b4af359f9da2c1d409.tar.gz servo-f419db834c9554ebb3e8a1b4af359f9da2c1d409.zip |
Replace the SelectorImplExt trait with inherent methods.
Diffstat (limited to 'components/style/servo_selector_impl.rs')
-rw-r--r-- | components/style/servo_selector_impl.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/components/style/servo_selector_impl.rs b/components/style/servo_selector_impl.rs index 5904cc3a478..eb0e539fce4 100644 --- a/components/style/servo_selector_impl.rs +++ b/components/style/servo_selector_impl.rs @@ -7,7 +7,7 @@ use element_state::ElementState; use error_reporting::StdoutErrorReporter; use parser::ParserContextExtraData; use restyle_hints::ElementSnapshot; -use selector_impl::{SelectorImplExt, ElementExt, PseudoElementCascadeType, TheSelectorImpl}; +use selector_impl::{ElementExt, PseudoElementCascadeType, TheSelectorImpl}; use selectors::parser::{AttrSelector, ParserContext, SelectorImpl}; use selectors::{Element, MatchAttrGeneric}; use std::process; @@ -158,14 +158,14 @@ impl SelectorImpl for ServoSelectorImpl { } } -impl SelectorImplExt for ServoSelectorImpl { +impl ServoSelectorImpl { #[inline] - fn pseudo_element_cascade_type(pseudo: &PseudoElement) -> PseudoElementCascadeType { + pub fn pseudo_element_cascade_type(pseudo: &PseudoElement) -> PseudoElementCascadeType { pseudo.cascade_type() } #[inline] - fn each_pseudo_element<F>(mut fun: F) + pub fn each_pseudo_element<F>(mut fun: F) where F: FnMut(PseudoElement) { fun(PseudoElement::Before); fun(PseudoElement::After); @@ -175,22 +175,22 @@ impl SelectorImplExt for ServoSelectorImpl { } #[inline] - fn pseudo_class_state_flag(pc: &NonTSPseudoClass) -> ElementState { + pub fn pseudo_class_state_flag(pc: &NonTSPseudoClass) -> ElementState { pc.state_flag() } #[inline] - fn pseudo_is_before_or_after(pseudo: &PseudoElement) -> bool { + pub fn pseudo_is_before_or_after(pseudo: &PseudoElement) -> bool { pseudo.is_before_or_after() } #[inline] - fn get_user_or_user_agent_stylesheets() -> &'static [Stylesheet] { + pub fn get_user_or_user_agent_stylesheets() -> &'static [Stylesheet] { &*USER_OR_USER_AGENT_STYLESHEETS } #[inline] - fn get_quirks_mode_stylesheet() -> Option<&'static Stylesheet> { + pub fn get_quirks_mode_stylesheet() -> Option<&'static Stylesheet> { Some(&*QUIRKS_MODE_STYLESHEET) } } |