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

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

Issue 2725343002: Migrate WTF::LinkedHashSet/ListHashSet::last() to ::back() (Closed)
Patch Set: rebase Created 3 years, 9 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
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 5385c343d13ac23fc7f2ef6505ef25235f910390..5d6d52cfc53bd06275401d01a23b334a116cad3c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -983,7 +983,7 @@ void LayoutBlockFlow::layoutRunsAndFloats(LineLayoutState& layoutState) {
RootInlineBox* startLine = determineStartPosition(layoutState, resolver);
if (containsFloats())
- layoutState.setLastFloat(m_floatingObjects->set().last().get());
+ layoutState.setLastFloat(m_floatingObjects->set().back().get());
// We also find the first clean line and extract these lines. We will add
// them back if we determine that we're able to synchronize after handling all
@@ -1061,7 +1061,7 @@ void LayoutBlockFlow::appendFloatsToLastLine(
layoutState.setFloatIndex(layoutState.floatIndex() + 1);
}
layoutState.setLastFloat(
- !floatingObjectSet.isEmpty() ? floatingObjectSet.last().get() : 0);
+ !floatingObjectSet.isEmpty() ? floatingObjectSet.back().get() : 0);
}
void LayoutBlockFlow::layoutRunsAndFloatsInRange(
@@ -1111,7 +1111,7 @@ void LayoutBlockFlow::layoutRunsAndFloatsInRange(
const InlineIterator previousEndofLine = endOfLine;
bool isNewUBAParagraph = layoutState.lineInfo().previousLineBrokeCleanly();
FloatingObject* lastFloatFromPreviousLine =
- (containsFloats()) ? m_floatingObjects->set().last().get() : 0;
+ (containsFloats()) ? m_floatingObjects->set().back().get() : 0;
WordMeasurements wordMeasurements;
endOfLine = lineBreaker.nextLineBreak(resolver, layoutState.lineInfo(),

Powered by Google App Engine
This is Rietveld 408576698