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

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

Issue 2398013002: Reflow comments in core/css/parser (Closed)
Patch Set: Removed weird border-style comment Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/SizesAttributeParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 358e654b99f35d688e8bf4d3b678a4aa2aaabbde..89e50e95661635797150181672c7d1fe76d64440 100644
--- a/third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/SizesCalcParser.cpp
@@ -80,7 +80,8 @@ void SizesCalcParser::appendOperator(const CSSParserToken& token) {
}
bool SizesCalcParser::calcToReversePolishNotation(CSSParserTokenRange range) {
- // This method implements the shunting yard algorithm, to turn the calc syntax into a reverse polish notation.
+ // This method implements the shunting yard algorithm, to turn the calc syntax
+ // into a reverse polish notation.
// http://en.wikipedia.org/wiki/Shunting-yard_algorithm
Vector<CSSParserToken> stack;
@@ -109,17 +110,20 @@ bool SizesCalcParser::calcToReversePolishNotation(CSSParserTokenRange range) {
break;
case RightParenthesisToken:
// If the token is a right parenthesis:
- // Until the token at the top of the stack is a left parenthesis, pop operators off the stack onto the output queue.
+ // Until the token at the top of the stack is a left parenthesis, pop
+ // operators off the stack onto the output queue.
while (!stack.isEmpty() &&
stack.last().type() != LeftParenthesisToken &&
stack.last().type() != FunctionToken) {
appendOperator(stack.last());
stack.removeLast();
}
- // If the stack runs out without finding a left parenthesis, then there are mismatched parentheses.
+ // If the stack runs out without finding a left parenthesis, then there
+ // are mismatched parentheses.
if (stack.isEmpty())
return false;
- // Pop the left parenthesis from the stack, but not onto the output queue.
+ // Pop the left parenthesis from the stack, but not onto the output
+ // queue.
stack.removeLast();
break;
case WhitespaceToken:
@@ -158,7 +162,8 @@ bool SizesCalcParser::calcToReversePolishNotation(CSSParserTokenRange range) {
// When there are no more tokens to read:
// While there are still operator tokens in the stack:
while (!stack.isEmpty()) {
- // If the operator token on the top of the stack is a parenthesis, then there are mismatched parentheses.
+ // If the operator token on the top of the stack is a parenthesis, then
+ // there are mismatched parentheses.
CSSParserTokenType type = stack.last().type();
if (type == LeftParenthesisToken || type == FunctionToken)
return false;
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/SizesAttributeParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698