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

Unified Diff: Source/core/css/parser/CSSParserTokenRange.h

Issue 1239983004: Make CSSCalcValue work with CSSParserTokenRange (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix calcFunction deletion Created 5 years, 5 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: Source/core/css/parser/CSSParserTokenRange.h
diff --git a/Source/core/css/parser/CSSParserTokenRange.h b/Source/core/css/parser/CSSParserTokenRange.h
index 6ad12750289e659b15e3a7719fe57fa7690a134d..1e3c9d37987a523628adcdafa75ac4401fb9c6e5 100644
--- a/Source/core/css/parser/CSSParserTokenRange.h
+++ b/Source/core/css/parser/CSSParserTokenRange.h
@@ -51,6 +51,12 @@ public:
return result;
}
+ const CSSParserToken& consumeSkippingWhitespace()
Timothy Loh 2015/07/28 08:17:41 The CSS parsing code uses a strategy of consuming
+ {
+ consumeWhitespace();
+ return consume();
+ }
+
// The returned range doesn't include the brackets
CSSParserTokenRange consumeBlock();

Powered by Google App Engine
This is Rietveld 408576698