mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01: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:
parent
5f55cd5d71
commit
740211d191
5 changed files with 18 additions and 18 deletions
|
@ -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(..) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue