mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue