aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface
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/script_layout_interface
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/script_layout_interface')
-rw-r--r--components/script_layout_interface/message.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script_layout_interface/message.rs b/components/script_layout_interface/message.rs
index fb2bac65d07..9bfeddb2ea2 100644
--- a/components/script_layout_interface/message.rs
+++ b/components/script_layout_interface/message.rs
@@ -115,7 +115,7 @@ pub enum NodesFromPointQueryType {
pub enum QueryMsg {
ContentBoxQuery(OpaqueNode),
ContentBoxesQuery(OpaqueNode),
- NodeGeometryQuery(OpaqueNode),
+ ClientRectQuery(OpaqueNode),
NodeScrollGeometryQuery(OpaqueNode),
OffsetParentQuery(OpaqueNode),
TextIndexQuery(OpaqueNode, Point2D<f32>),
@@ -152,7 +152,7 @@ impl ReflowGoal {
QueryMsg::ElementInnerTextQuery(_) => true,
QueryMsg::ContentBoxQuery(_) |
QueryMsg::ContentBoxesQuery(_) |
- QueryMsg::NodeGeometryQuery(_) |
+ QueryMsg::ClientRectQuery(_) |
QueryMsg::NodeScrollGeometryQuery(_) |
QueryMsg::NodeScrollIdQuery(_) |
QueryMsg::ResolvedStyleQuery(..) |
@@ -173,7 +173,7 @@ impl ReflowGoal {
QueryMsg::ElementInnerTextQuery(_) => true,
QueryMsg::ContentBoxQuery(_) |
QueryMsg::ContentBoxesQuery(_) |
- QueryMsg::NodeGeometryQuery(_) |
+ QueryMsg::ClientRectQuery(_) |
QueryMsg::NodeScrollGeometryQuery(_) |
QueryMsg::NodeScrollIdQuery(_) |
QueryMsg::ResolvedStyleQuery(..) |