aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2017-08-07 16:08:01 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2017-08-08 10:53:17 -0700
commita08bc13df96c70022e5ab0207419609a501d85dc (patch)
treebc6926e5d1da52e1e6f8c54d9aa3420354b05359 /components/layout/flow.rs
parent1f0e42e8fe721d896796205669f7265f2ed64b3e (diff)
downloadservo-a08bc13df96c70022e5ab0207419609a501d85dc.tar.gz
servo-a08bc13df96c70022e5ab0207419609a501d85dc.zip
Rename compute_absolute_position to compute_stacking_relative_position
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index a97ec1cb9ad..c6fc65407e5 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -339,8 +339,9 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static {
mut_base(self).overflow = overflow
}
- /// Phase 4 of reflow: computes absolute positions.
- fn compute_absolute_position(&mut self, _: &LayoutContext) {
+ /// Phase 4 of reflow: Compute the stacking-relative position (origin of the content box,
+ /// in coordinates relative to the nearest ancestor stacking context).
+ fn compute_stacking_relative_position(&mut self, _: &LayoutContext) {
// The default implementation is a no-op.
mut_base(self).restyle_damage.remove(REPOSITION)
}