diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-08-27 09:01:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 16:01:48 +0000 |
commit | 87027d2e5c02b51fea0cb49c1cd4ba4f85debd3a (patch) | |
tree | 595cefc0fab26791a1cbb83a3e125836d00fbf41 /components/shared/script_layout | |
parent | 50eb69a7e0f9d70d9c395eadb03fb7bbe2ae6724 (diff) | |
download | servo-87027d2e5c02b51fea0cb49c1cd4ba4f85debd3a.tar.gz servo-87027d2e5c02b51fea0cb49c1cd4ba4f85debd3a.zip |
Remove measurement of layout query wait time (#33210)
Now that the script thread and the layout thread are the same the wait
time effectively zero, so there's no need to measure it. This also
removes one dependency and removes one use of legacy time.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/shared/script_layout')
-rw-r--r-- | components/shared/script_layout/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/shared/script_layout/lib.rs b/components/shared/script_layout/lib.rs index bb9099e8b45..4c43b2e859a 100644 --- a/components/shared/script_layout/lib.rs +++ b/components/shared/script_layout/lib.rs @@ -310,7 +310,7 @@ pub enum QueryMsg { pub enum ReflowGoal { Full, TickAnimations, - LayoutQuery(QueryMsg, u64), + LayoutQuery(QueryMsg), /// Tells layout about a single new scrolling offset from the script. The rest will /// remain untouched and layout won't forward this back to script. @@ -323,7 +323,7 @@ impl ReflowGoal { pub fn needs_display_list(&self) -> bool { match *self { ReflowGoal::Full | ReflowGoal::TickAnimations | ReflowGoal::UpdateScrollNode(_) => true, - ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg { + ReflowGoal::LayoutQuery(ref querymsg) => match *querymsg { QueryMsg::ElementInnerTextQuery | QueryMsg::InnerWindowDimensionsQuery | QueryMsg::NodesFromPointQuery | @@ -345,7 +345,7 @@ impl ReflowGoal { pub fn needs_display(&self) -> bool { match *self { ReflowGoal::Full | ReflowGoal::TickAnimations | ReflowGoal::UpdateScrollNode(_) => true, - ReflowGoal::LayoutQuery(ref querymsg, _) => match *querymsg { + ReflowGoal::LayoutQuery(ref querymsg) => match *querymsg { QueryMsg::NodesFromPointQuery | QueryMsg::TextIndexQuery | QueryMsg::ElementInnerTextQuery => true, |