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

Unified Diff: third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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/editing/GranularityStrategyTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp b/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp
index e7fd2cbec19421c8b67db9443aa93fadaaff6470..80de46258b646b0f475055725eedb6449d877feb 100644
--- a/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp
+++ b/third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp
@@ -149,7 +149,7 @@ void GranularityStrategyTest::parseText(const TextNodeVector& textNodes) {
}
}
if (wordStarted) {
- const auto& lastNode = textNodes.last();
+ const auto& lastNode = textNodes.back();
int xEnd = visiblePositionToContentsPoint(
createVisiblePosition(
Position(lastNode, lastNode->wholeText().length())))

Powered by Google App Engine
This is Rietveld 408576698