mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make some cosmetic changes to ReflowGoal methods
This commit is contained in:
parent
6197f1adda
commit
2058ac0c7f
1 changed files with 24 additions and 24 deletions
|
@ -143,18 +143,18 @@ impl ReflowGoal {
|
|||
pub fn needs_display_list(&self) -> bool {
|
||||
match *self {
|
||||
ReflowGoal::Full | ReflowGoal::TickAnimations => true,
|
||||
ReflowGoal::LayoutQuery(ref querymsg, _) => match querymsg {
|
||||
&QueryMsg::NodesFromPointQuery(..) |
|
||||
&QueryMsg::TextIndexQuery(..) |
|
||||
&QueryMsg::ElementInnerTextQuery(_) => true,
|
||||
&QueryMsg::ContentBoxQuery(_) |
|
||||
&QueryMsg::ContentBoxesQuery(_) |
|
||||
&QueryMsg::NodeGeometryQuery(_) |
|
||||
&QueryMsg::NodeScrollGeometryQuery(_) |
|
||||
&QueryMsg::NodeScrollIdQuery(_) |
|
||||
&QueryMsg::ResolvedStyleQuery(..) |
|
||||
&QueryMsg::OffsetParentQuery(_) |
|
||||
&QueryMsg::StyleQuery(_) => false,
|
||||
ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg {
|
||||
QueryMsg::NodesFromPointQuery(..) |
|
||||
QueryMsg::TextIndexQuery(..) |
|
||||
QueryMsg::ElementInnerTextQuery(_) => true,
|
||||
QueryMsg::ContentBoxQuery(_) |
|
||||
QueryMsg::ContentBoxesQuery(_) |
|
||||
QueryMsg::NodeGeometryQuery(_) |
|
||||
QueryMsg::NodeScrollGeometryQuery(_) |
|
||||
QueryMsg::NodeScrollIdQuery(_) |
|
||||
QueryMsg::ResolvedStyleQuery(..) |
|
||||
QueryMsg::OffsetParentQuery(_) |
|
||||
QueryMsg::StyleQuery(_) => false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -164,18 +164,18 @@ impl ReflowGoal {
|
|||
pub fn needs_display(&self) -> bool {
|
||||
match *self {
|
||||
ReflowGoal::Full | ReflowGoal::TickAnimations => true,
|
||||
ReflowGoal::LayoutQuery(ref querymsg, _) => match querymsg {
|
||||
&QueryMsg::NodesFromPointQuery(..) |
|
||||
&QueryMsg::TextIndexQuery(..) |
|
||||
&QueryMsg::ElementInnerTextQuery(_) => true,
|
||||
&QueryMsg::ContentBoxQuery(_) |
|
||||
&QueryMsg::ContentBoxesQuery(_) |
|
||||
&QueryMsg::NodeGeometryQuery(_) |
|
||||
&QueryMsg::NodeScrollGeometryQuery(_) |
|
||||
&QueryMsg::NodeScrollIdQuery(_) |
|
||||
&QueryMsg::ResolvedStyleQuery(..) |
|
||||
&QueryMsg::OffsetParentQuery(_) |
|
||||
&QueryMsg::StyleQuery(_) => false,
|
||||
ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg {
|
||||
QueryMsg::NodesFromPointQuery(..) |
|
||||
QueryMsg::TextIndexQuery(..) |
|
||||
QueryMsg::ElementInnerTextQuery(_) => true,
|
||||
QueryMsg::ContentBoxQuery(_) |
|
||||
QueryMsg::ContentBoxesQuery(_) |
|
||||
QueryMsg::NodeGeometryQuery(_) |
|
||||
QueryMsg::NodeScrollGeometryQuery(_) |
|
||||
QueryMsg::NodeScrollIdQuery(_) |
|
||||
QueryMsg::ResolvedStyleQuery(..) |
|
||||
QueryMsg::OffsetParentQuery(_) |
|
||||
QueryMsg::StyleQuery(_) => false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue