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

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

Issue 1348363004: Add consumeInteger/consumeLength (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix build Created 5 years, 3 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/CSSParserToken.h
diff --git a/Source/core/css/parser/CSSParserToken.h b/Source/core/css/parser/CSSParserToken.h
index 2576ee136f3daf19c6a55629afd0b28ea6123f09..3261c6fe8e2614ae99ca618af36c0b81063fe7a2 100644
--- a/Source/core/css/parser/CSSParserToken.h
+++ b/Source/core/css/parser/CSSParserToken.h
@@ -104,6 +104,7 @@ public:
HashTokenType hashTokenType() const { ASSERT(m_type == HashToken); return m_hashTokenType; }
BlockType blockType() const { return static_cast<BlockType>(m_blockType); }
CSSPrimitiveValue::UnitType unitType() const { return static_cast<CSSPrimitiveValue::UnitType>(m_unit); }
+ void setUnitType(CSSPrimitiveValue::UnitType unitType) { m_unit = static_cast<int>(unitType); }
UChar32 unicodeRangeStart() const { ASSERT(m_type == UnicodeRangeToken); return m_unicodeRange.start; }
UChar32 unicodeRangeEnd() const { ASSERT(m_type == UnicodeRangeToken); return m_unicodeRange.end; }
CSSValueID id() const;
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.h » ('j') | Source/core/css/parser/CSSPropertyParser.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698