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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp

Issue 2789913002: Revert of Avoid inline capacity of WordMeasurements (Closed)
Patch Set: Rebase after the big rename 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 | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | 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/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index d5d199110fc435c4d8ab8c9773eb0b615bbf489c..145fb58188a2f1a786da2707ddb27b4e411f2cb0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -1118,9 +1118,6 @@ void LayoutBlockFlow::LayoutRunsAndFloatsInRange(
LineBreaker line_breaker(LineLayoutBlockFlow(this));
- // We avoid inline capacity to save the stack space.
- WordMeasurements word_measurements;
- word_measurements.ReserveInitialCapacity(64);
while (!end_of_line.AtEnd()) {
// The runs from the previous line should have been cleaned up.
@@ -1151,7 +1148,7 @@ void LayoutBlockFlow::LayoutRunsAndFloatsInRange(
FloatingObject* last_float_from_previous_line =
(ContainsFloats()) ? floating_objects_->Set().back().get() : 0;
- word_measurements.Clear();
+ WordMeasurements word_measurements;
end_of_line =
line_breaker.NextLineBreak(resolver, layout_state.GetLineInfo(),
layout_text_info, word_measurements);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698