aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
authorPu Xingyu <pu.stshine@gmail.com>2017-01-04 13:33:58 +0800
committerPu Xingyu <pu.stshine@gmail.com>2017-02-06 00:44:11 +0800
commitf07bfaa97466018f93124e308556aa93293cf648 (patch)
treee7856552cdc64c93b06377f2533ec1188696bbee /components/layout/fragment.rs
parentcd63f1b158807035d2a83584e64329015a3fff4d (diff)
downloadservo-f07bfaa97466018f93124e308556aa93293cf648.tar.gz
servo-f07bfaa97466018f93124e308556aa93293cf648.zip
Remove redundant style_context() method of LayoutContext
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index 558abe47b37..046838f4ade 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -642,8 +642,8 @@ pub struct TruncatedFragmentInfo {
impl Fragment {
/// Constructs a new `Fragment` instance.
pub fn new<N: ThreadSafeLayoutNode>(node: &N, specific: SpecificFragmentInfo, ctx: &LayoutContext) -> Fragment {
- let style_context = ctx.style_context();
- let style = node.style(style_context);
+ let shared_context = ctx.shared_context();
+ let style = node.style(shared_context);
let writing_mode = style.writing_mode;
let mut restyle_damage = node.restyle_damage();