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

Unified Diff: third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp

Issue 2459003003: WTF/std normalization: replace WTF::Vector::removeLast with ::pop_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/parser/SizesCalcParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp b/third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp
index 89e50e95661635797150181672c7d1fe76d64440..5f71a8ec73be4dce9c2d995d05ecfc61904d0075 100644
--- a/third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp
@@ -48,7 +48,7 @@ bool SizesCalcParser::handleOperator(Vector<CSSParserToken>& stack,
return false;
if (!incomingOperatorPriority || stackOperatorPriority) {
appendOperator(stack.last());
- stack.removeLast();
+ stack.pop_back();
}
}
stack.append(token);
@@ -116,7 +116,7 @@ bool SizesCalcParser::calcToReversePolishNotation(CSSParserTokenRange range) {
stack.last().type() != LeftParenthesisToken &&
stack.last().type() != FunctionToken) {
appendOperator(stack.last());
- stack.removeLast();
+ stack.pop_back();
}
// If the stack runs out without finding a left parenthesis, then there
// are mismatched parentheses.
@@ -124,7 +124,7 @@ bool SizesCalcParser::calcToReversePolishNotation(CSSParserTokenRange range) {
return false;
// Pop the left parenthesis from the stack, but not onto the output
// queue.
- stack.removeLast();
+ stack.pop_back();
break;
case WhitespaceToken:
case EOFToken:
@@ -169,7 +169,7 @@ bool SizesCalcParser::calcToReversePolishNotation(CSSParserTokenRange range) {
return false;
// Pop the operator onto the output queue.
appendOperator(stack.last());
- stack.removeLast();
+ stack.pop_back();
}
return true;
}
@@ -178,9 +178,9 @@ static bool operateOnStack(Vector<SizesCalcValue>& stack, UChar operation) {
if (stack.size() < 2)
return false;
SizesCalcValue rightOperand = stack.last();
- stack.removeLast();
+ stack.pop_back();
SizesCalcValue leftOperand = stack.last();
- stack.removeLast();
+ stack.pop_back();
bool isLength;
switch (operation) {
case '+':
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698