mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Bug 1364412: Simplify Servo_HasAuthorSpecifiedRules looking at the pseudo style. r=bholley
MozReview-Commit-ID: HpV92ttZGJz Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
84f5a90668
commit
737c7f1f63
2 changed files with 14 additions and 67 deletions
|
@ -1071,10 +1071,11 @@ impl StrongRuleNode {
|
|||
if !have_explicit_ua_inherit { break }
|
||||
|
||||
// Continue to the parent element and search for the inherited properties.
|
||||
element = match element.parent_element() {
|
||||
element = match element.inheritance_parent() {
|
||||
Some(parent) => parent,
|
||||
None => break
|
||||
};
|
||||
|
||||
let parent_data = element.mutate_data().unwrap();
|
||||
let parent_rule_node = parent_data.styles().primary.rules.clone();
|
||||
element_rule_node = Cow::Owned(parent_rule_node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue