introduce layout query timestamp

This commit is contained in:
csmoe 2018-03-17 00:40:13 +08:00
parent df6b64181b
commit 98fe118be4
9 changed files with 50 additions and 8 deletions

View file

@ -1968,8 +1968,7 @@ impl Document {
client_point: &Point2D<f32>,
reflow_goal: NodesFromPointQueryType)
-> Vec<UntrustedNodeAddress> {
if !self.window.reflow(ReflowGoal::LayoutQuery(QueryMsg::NodesFromPointQuery(*client_point, reflow_goal), u64::default()),
ReflowReason::Query) {
if !self.window.layout_reflow(QueryMsg::NodesFromPointQuery(*client_point, reflow_goal)) {
return vec!();
};