mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Store resolved font style in canvas context state
This commit is contained in:
parent
5493424d9a
commit
15fd256302
11 changed files with 81 additions and 49 deletions
|
@ -117,7 +117,7 @@ pub enum QueryMsg {
|
|||
ResolvedStyleQuery(TrustedNodeAddress, Option<PseudoElement>, PropertyId),
|
||||
StyleQuery,
|
||||
ElementInnerTextQuery(TrustedNodeAddress),
|
||||
ParseFontQuery(TrustedNodeAddress, PropertyId, String),
|
||||
ResolvedFontStyleQuery(TrustedNodeAddress, PropertyId, String),
|
||||
InnerWindowDimensionsQuery(BrowsingContextId),
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ impl ReflowGoal {
|
|||
QueryMsg::NodeScrollGeometryQuery(_) |
|
||||
QueryMsg::NodeScrollIdQuery(_) |
|
||||
QueryMsg::ResolvedStyleQuery(..) |
|
||||
QueryMsg::ParseFontQuery(..) |
|
||||
QueryMsg::ResolvedFontStyleQuery(..) |
|
||||
QueryMsg::OffsetParentQuery(_) |
|
||||
QueryMsg::StyleQuery => false,
|
||||
},
|
||||
|
@ -168,7 +168,7 @@ impl ReflowGoal {
|
|||
QueryMsg::NodeScrollGeometryQuery(_) |
|
||||
QueryMsg::NodeScrollIdQuery(_) |
|
||||
QueryMsg::ResolvedStyleQuery(..) |
|
||||
QueryMsg::ParseFontQuery(..) |
|
||||
QueryMsg::ResolvedFontStyleQuery(..) |
|
||||
QueryMsg::OffsetParentQuery(_) |
|
||||
QueryMsg::InnerWindowDimensionsQuery(_) |
|
||||
QueryMsg::StyleQuery => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue