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/script/dom/window.rs | |
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/script/dom/window.rs')
-rw-r--r-- | components/script/dom/window.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 5e7e1f8988c..6f20bb64ace 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -2066,10 +2066,7 @@ impl Window { } pub fn layout_reflow(&self, query_msg: QueryMsg) -> bool { - self.reflow( - ReflowGoal::LayoutQuery(query_msg, time::precise_time_ns()), - ReflowReason::Query, - ) + self.reflow(ReflowGoal::LayoutQuery(query_msg), ReflowReason::Query) } pub fn resolved_font_style_query(&self, node: &Node, value: String) -> Option<ServoArc<Font>> { @@ -2732,7 +2729,7 @@ fn debug_reflow_events(id: PipelineId, reflow_goal: &ReflowGoal, reason: &Reflow ReflowGoal::Full => "\tFull", ReflowGoal::TickAnimations => "\tTickAnimations", ReflowGoal::UpdateScrollNode(_) => "\tUpdateScrollNode", - ReflowGoal::LayoutQuery(ref query_msg, _) => match *query_msg { + ReflowGoal::LayoutQuery(ref query_msg) => match *query_msg { QueryMsg::ContentBox => "\tContentBoxQuery", QueryMsg::ContentBoxes => "\tContentBoxesQuery", QueryMsg::NodesFromPointQuery => "\tNodesFromPointQuery", |