mirror of
https://github.com/servo/servo
synced 2026-04-28 02:19:14 +02:00
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.
This commit is contained in:
@@ -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(..) |
|
||||
|
||||
Reference in New Issue
Block a user