Index: third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
index 422164dedfcd20a115bf5a102454c8f742ae5d00..ca96f85d032d45574cc7b44e0b4fa22661715ee8 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
@@ -120,12 +120,8 @@ void NGInlineLayoutAlgorithm::Initialize(unsigned index, unsigned offset) { |
start_offset_ = end_offset_ = last_break_opportunity_offset_ = offset; |
end_position_ = last_break_opportunity_position_ = LayoutUnit(); |
- disallow_first_line_rules_ = index || offset || |
- !Node() |
- ->GetLayoutObject() |
- ->GetDocument() |
- .GetStyleEngine() |
- .UsesFirstLineRules(); |
+ auto& engine = Node()->GetLayoutObject()->GetDocument().GetStyleEngine(); |
+ disallow_first_line_rules_ = index || offset || !engine.UsesFirstLineRules(); |
FindNextLayoutOpportunity(); |
} |