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); |