diff options
author | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-24 18:34:36 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-04-29 22:54:48 +0200 |
commit | 2a499d5a0bd51dded25a2705f8922841718d3f48 (patch) | |
tree | 1329a8ec3d35dcbc6153dae2b410d7a0d90f9134 /components/layout/context.rs | |
parent | 979c3a54b9469049d12ad1d391a8b21a42e6fa13 (diff) | |
download | servo-2a499d5a0bd51dded25a2705f8922841718d3f48.tar.gz servo-2a499d5a0bd51dded25a2705f8922841718d3f48.zip |
layout: Stop storing PrecomputedStyleData in LayoutNode
Use the SharedStyleContext instead.
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r-- | components/layout/context.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs index 0a9933d4abd..9c752645513 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -130,6 +130,11 @@ impl<'a> LayoutContext<'a> { } #[inline(always)] + pub fn style_context(&self) -> &SharedStyleContext { + &self.shared.style_context + } + + #[inline(always)] pub fn font_context(&self) -> RefMut<FontContext> { self.cached_local_layout_context.font_context.borrow_mut() } |