mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Don't go through the layout thread to retrieve a node's primary style
This commit is contained in:
parent
030a1cf8fb
commit
c10e839924
10 changed files with 38 additions and 79 deletions
|
@ -122,7 +122,7 @@ pub enum QueryMsg {
|
|||
// garbage values such as `0xdeadbeef as *const _`, this is unsound.
|
||||
NodeScrollIdQuery(TrustedNodeAddress),
|
||||
ResolvedStyleQuery(TrustedNodeAddress, Option<PseudoElement>, PropertyId),
|
||||
StyleQuery(TrustedNodeAddress),
|
||||
StyleQuery,
|
||||
ElementInnerTextQuery(TrustedNodeAddress),
|
||||
InnerWindowDimensionsQuery(BrowsingContextId),
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ impl ReflowGoal {
|
|||
QueryMsg::NodeScrollIdQuery(_) |
|
||||
QueryMsg::ResolvedStyleQuery(..) |
|
||||
QueryMsg::OffsetParentQuery(_) |
|
||||
QueryMsg::StyleQuery(_) => false,
|
||||
QueryMsg::StyleQuery => false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ impl ReflowGoal {
|
|||
QueryMsg::ResolvedStyleQuery(..) |
|
||||
QueryMsg::OffsetParentQuery(_) |
|
||||
QueryMsg::InnerWindowDimensionsQuery(_) |
|
||||
QueryMsg::StyleQuery(_) => false,
|
||||
QueryMsg::StyleQuery => false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue