Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc

Issue 2808103002: [LayoutNG] Fix wrapping in NGInlineLayoutAlgorithm::Initialize (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698