mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Backed out changeset fc813bf68348 for failing reftest layout/reftests/bugs/272646-1.xul on OS X. r=backout
Backs out https://github.com/servo/servo/pull/19045
This commit is contained in:
parent
592c513c28
commit
cda9d186c1
5 changed files with 47 additions and 148 deletions
|
@ -388,15 +388,6 @@ pub trait TElement
|
|||
depth
|
||||
}
|
||||
|
||||
/// The style scope of this element is a node that represents which rules
|
||||
/// apply to the element.
|
||||
///
|
||||
/// In Servo, where we don't know about Shadow DOM or XBL, the style scope
|
||||
/// is always the document.
|
||||
fn style_scope(&self) -> Self::ConcreteNode {
|
||||
self.as_node().owner_doc().as_node()
|
||||
}
|
||||
|
||||
/// Get this node's parent element from the perspective of a restyle
|
||||
/// traversal.
|
||||
fn traversal_parent(&self) -> Option<Self> {
|
||||
|
@ -747,16 +738,14 @@ pub trait TElement
|
|||
None
|
||||
}
|
||||
|
||||
/// Return the element which we can use to look up rules in the selector
|
||||
/// maps.
|
||||
///
|
||||
/// This is always the element itself, except in the case where we are an
|
||||
/// element-backed pseudo-element, in which case we return the originating
|
||||
/// element.
|
||||
/// Returns the rule hash target given an element.
|
||||
fn rule_hash_target(&self) -> Self {
|
||||
let is_implemented_pseudo =
|
||||
self.implemented_pseudo_element().is_some();
|
||||
|
||||
// NB: This causes use to rule has pseudo selectors based on the
|
||||
// properties of the originating element (which is fine, given the
|
||||
// find_first_from_right usage).
|
||||
if is_implemented_pseudo {
|
||||
self.closest_non_native_anonymous_ancestor().unwrap()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue