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

Unified Diff: third_party/WebKit/Source/core/css/resolver/MatchResult.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/css/resolver/MatchResult.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/MatchResult.cpp b/third_party/WebKit/Source/core/css/resolver/MatchResult.cpp
index 3685826c21835ca9fd4d00981b873ce1c0957152..912a8240fb0b5e58bd292050727b76dfb68719ac 100644
--- a/third_party/WebKit/Source/core/css/resolver/MatchResult.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/MatchResult.cpp
@@ -48,7 +48,7 @@ void MatchResult::addMatchedProperties(
unsigned linkMatchType,
PropertyWhitelistType propertyWhitelistType) {
m_matchedProperties.grow(m_matchedProperties.size() + 1);
- MatchedProperties& newProperties = m_matchedProperties.last();
+ MatchedProperties& newProperties = m_matchedProperties.back();
newProperties.properties = const_cast<StylePropertySet*>(properties);
newProperties.m_types.linkMatchType = linkMatchType;
newProperties.m_types.whitelistType = propertyWhitelistType;
@@ -63,7 +63,7 @@ void MatchResult::finishAddingAuthorRulesForTreeScope() {
if (m_authorRangeEnds.isEmpty() && m_uaRangeEnd == m_matchedProperties.size())
return;
if (!m_authorRangeEnds.isEmpty() &&
- m_authorRangeEnds.last() == m_matchedProperties.size())
+ m_authorRangeEnds.back() == m_matchedProperties.size())
return;
m_authorRangeEnds.append(m_matchedProperties.size());
}
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698