mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove redundant style_context() method of LayoutContext
This commit is contained in:
parent
cd63f1b158
commit
f07bfaa974
3 changed files with 3 additions and 11 deletions
|
@ -131,19 +131,11 @@ 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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue