Make some cosmetic changes to ReflowGoal methods

This commit is contained in:
Anthony Ramine 2019-01-10 14:03:46 +01:00
parent 6197f1adda
commit 2058ac0c7f

View file

@ -143,18 +143,18 @@ impl ReflowGoal {
pub fn needs_display_list(&self) -> bool { pub fn needs_display_list(&self) -> bool {
match *self { match *self {
ReflowGoal::Full | ReflowGoal::TickAnimations => true, ReflowGoal::Full | ReflowGoal::TickAnimations => true,
ReflowGoal::LayoutQuery(ref querymsg, _) => match querymsg { ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg {
&QueryMsg::NodesFromPointQuery(..) | QueryMsg::NodesFromPointQuery(..) |
&QueryMsg::TextIndexQuery(..) | QueryMsg::TextIndexQuery(..) |
&QueryMsg::ElementInnerTextQuery(_) => true, QueryMsg::ElementInnerTextQuery(_) => true,
&QueryMsg::ContentBoxQuery(_) | QueryMsg::ContentBoxQuery(_) |
&QueryMsg::ContentBoxesQuery(_) | QueryMsg::ContentBoxesQuery(_) |
&QueryMsg::NodeGeometryQuery(_) | QueryMsg::NodeGeometryQuery(_) |
&QueryMsg::NodeScrollGeometryQuery(_) | QueryMsg::NodeScrollGeometryQuery(_) |
&QueryMsg::NodeScrollIdQuery(_) | QueryMsg::NodeScrollIdQuery(_) |
&QueryMsg::ResolvedStyleQuery(..) | QueryMsg::ResolvedStyleQuery(..) |
&QueryMsg::OffsetParentQuery(_) | QueryMsg::OffsetParentQuery(_) |
&QueryMsg::StyleQuery(_) => false, QueryMsg::StyleQuery(_) => false,
}, },
} }
} }
@ -164,18 +164,18 @@ impl ReflowGoal {
pub fn needs_display(&self) -> bool { pub fn needs_display(&self) -> bool {
match *self { match *self {
ReflowGoal::Full | ReflowGoal::TickAnimations => true, ReflowGoal::Full | ReflowGoal::TickAnimations => true,
ReflowGoal::LayoutQuery(ref querymsg, _) => match querymsg { ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg {
&QueryMsg::NodesFromPointQuery(..) | QueryMsg::NodesFromPointQuery(..) |
&QueryMsg::TextIndexQuery(..) | QueryMsg::TextIndexQuery(..) |
&QueryMsg::ElementInnerTextQuery(_) => true, QueryMsg::ElementInnerTextQuery(_) => true,
&QueryMsg::ContentBoxQuery(_) | QueryMsg::ContentBoxQuery(_) |
&QueryMsg::ContentBoxesQuery(_) | QueryMsg::ContentBoxesQuery(_) |
&QueryMsg::NodeGeometryQuery(_) | QueryMsg::NodeGeometryQuery(_) |
&QueryMsg::NodeScrollGeometryQuery(_) | QueryMsg::NodeScrollGeometryQuery(_) |
&QueryMsg::NodeScrollIdQuery(_) | QueryMsg::NodeScrollIdQuery(_) |
&QueryMsg::ResolvedStyleQuery(..) | QueryMsg::ResolvedStyleQuery(..) |
&QueryMsg::OffsetParentQuery(_) | QueryMsg::OffsetParentQuery(_) |
&QueryMsg::StyleQuery(_) => false, QueryMsg::StyleQuery(_) => false,
}, },
} }
} }