mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #17751 - emilio:embarrasing-typo, r=heycam
style: Fix a typo that makes us resolve styles for the whole spin to the root. For undisplayed elements, at least. <!-- 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/17751) <!-- Reviewable:end -->
This commit is contained in:
commit
d8ba8cad58
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ where
|
||||||
let mut ancestor = element.traversal_parent();
|
let mut ancestor = element.traversal_parent();
|
||||||
while let Some(current) = ancestor {
|
while let Some(current) = ancestor {
|
||||||
if rule_inclusion == RuleInclusion::All {
|
if rule_inclusion == RuleInclusion::All {
|
||||||
if let Some(data) = element.borrow_data() {
|
if let Some(data) = current.borrow_data() {
|
||||||
if let Some(ancestor_style) = data.styles.get_primary() {
|
if let Some(ancestor_style) = data.styles.get_primary() {
|
||||||
style = Some(ancestor_style.clone());
|
style = Some(ancestor_style.clone());
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue