aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020/lib.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2020-02-05 15:23:36 +0100
committerMartin Robinson <mrobinson@igalia.com>2020-02-05 15:25:52 +0100
commit740211d191ce4ec1c8a11596e1c8aaf92deea3dc (patch)
tree13fe2aeec8ccdac5a22d8d9a56be5fb1967a4126 /components/layout_thread_2020/lib.rs
parent5f55cd5d71df9c555fbc24777168396ddd539f28 (diff)
downloadservo-740211d191ce4ec1c8a11596e1c8aaf92deea3dc.tar.gz
servo-740211d191ce4ec1c8a11596e1c8aaf92deea3dc.zip
Improve the name the NodeGeometryQuery
This query is used to get the clientTop, clientWidth, clientHeight, clientLeft properties of DOM objects. "NodeGeometry" doesn't really capture what these properties do as they often are returning the width of element border.
Diffstat (limited to 'components/layout_thread_2020/lib.rs')
-rw-r--r--components/layout_thread_2020/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs
index 295cdabda4e..0cc910d9c71 100644
--- a/components/layout_thread_2020/lib.rs
+++ b/components/layout_thread_2020/lib.rs
@@ -952,7 +952,7 @@ impl LayoutThread {
&QueryMsg::NodesFromPointQuery(..) => {
rw_data.nodes_from_point_response = Vec::new();
},
- &QueryMsg::NodeGeometryQuery(_) => {
+ &QueryMsg::ClientRectQuery(_) => {
rw_data.client_rect_response = Rect::zero();
},
&QueryMsg::NodeScrollGeometryQuery(_) => {
@@ -1233,7 +1233,7 @@ impl LayoutThread {
);
rw_data.text_index_response = process_text_index_request(node, point_in_node);
},
- &QueryMsg::NodeGeometryQuery(node) => {
+ &QueryMsg::ClientRectQuery(node) => {
rw_data.client_rect_response = process_node_geometry_request(node);
},
&QueryMsg::NodeScrollGeometryQuery(node) => {