aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index baac3f29c41..8d83cf4b5c1 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -131,20 +131,12 @@ impl<'a> LayoutContext<'a> {
}
impl<'a> LayoutContext<'a> {
- // FIXME(bholley): The following two methods are identical and should be merged.
- // shared_context() is the appropriate name, but it involves renaming a lot of
- // calls.
#[inline(always)]
pub fn shared_context(&self) -> &SharedStyleContext {
&self.shared.style_context
}
#[inline(always)]
- pub fn style_context(&self) -> &SharedStyleContext {
- &self.shared.style_context
- }
-
- #[inline(always)]
pub fn font_context(&self) -> RefMut<FontContext> {
self.persistent.font_context.borrow_mut()
}