aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/wrapper.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2016-10-09 13:37:57 -0700
committerMichael Howell <michael@notriddle.com>2016-10-10 20:36:31 -0700
commitbfbbef6ecdfd8bdd0a58bd1a0c7ed95c182b98a7 (patch)
tree48a687153507447f1e43cb3a0b5ded1d510e23dc /components/layout/wrapper.rs
parentddbc016f51e169369a6c25d68b453dc299cc8677 (diff)
downloadservo-bfbbef6ecdfd8bdd0a58bd1a0c7ed95c182b98a7.tar.gz
servo-bfbbef6ecdfd8bdd0a58bd1a0c7ed95c182b98a7.zip
Remove borrow_data and mutate_data from TNode.
The new restyle architecture doesn't store these things in consistent places, so we need a more abstract API.
Diffstat (limited to 'components/layout/wrapper.rs')
-rw-r--r--components/layout/wrapper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs
index 28d1196221b..2c8b3a175c3 100644
--- a/components/layout/wrapper.rs
+++ b/components/layout/wrapper.rs
@@ -68,7 +68,7 @@ impl<T: LayoutNode> LayoutNodeLayoutData for T {
}
fn initialize_data(self) {
- if self.borrow_data().is_none() {
+ if self.borrow_layout_data().is_none() {
let ptr: NonOpaqueStyleAndLayoutData =
Box::into_raw(box AtomicRefCell::new(PersistentLayoutData::new()));
let opaque = OpaqueStyleAndLayoutData {