diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-10-09 13:37:57 -0700 |
---|---|---|
committer | Michael Howell <michael@notriddle.com> | 2016-10-10 20:36:31 -0700 |
commit | bfbbef6ecdfd8bdd0a58bd1a0c7ed95c182b98a7 (patch) | |
tree | 48a687153507447f1e43cb3a0b5ded1d510e23dc /components/layout/wrapper.rs | |
parent | ddbc016f51e169369a6c25d68b453dc299cc8677 (diff) | |
download | servo-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.rs | 2 |
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 { |