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

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

Issue 647483009: CSS Parser: Implement parseValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase / update Created 6 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
« no previous file with comments | « Source/core/css/parser/CSSParserToken.cpp ('k') | Source/core/css/parser/CSSParserValues.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParserValues.h
diff --git a/Source/core/css/parser/CSSParserValues.h b/Source/core/css/parser/CSSParserValues.h
index bab95d2629e4ea100cb35bfcf5cd92e32d0985f5..ac09c4bac1d3c4e3ed4de0d501998af202e75545 100644
--- a/Source/core/css/parser/CSSParserValues.h
+++ b/Source/core/css/parser/CSSParserValues.h
@@ -25,6 +25,7 @@
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSSelector.h"
#include "core/css/CSSValueList.h"
+#include "core/css/parser/CSSParserToken.h"
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
@@ -156,6 +157,7 @@ struct CSSParserValue {
int unit;
inline void setFromNumber(double value, int unit = CSSPrimitiveValue::CSS_NUMBER);
+ inline void setFromOperator(UChar);
inline void setFromFunction(CSSParserFunction*);
inline void setFromValueList(PassOwnPtr<CSSParserValueList>);
};
@@ -167,6 +169,7 @@ public:
: m_current(0)
{
}
+ CSSParserValueList(CSSParserTokenIterator start, CSSParserTokenIterator end);
~CSSParserValueList();
void addValue(const CSSParserValue&);
@@ -267,6 +270,14 @@ inline void CSSParserValue::setFromNumber(double value, int unit)
this->unit = unit;
}
+inline void CSSParserValue::setFromOperator(UChar c)
+{
+ id = CSSValueInvalid;
+ unit = Operator;
+ iValue = c;
+ isInt = false;
+}
+
inline void CSSParserValue::setFromFunction(CSSParserFunction* function)
{
id = CSSValueInvalid;
« no previous file with comments | « Source/core/css/parser/CSSParserToken.cpp ('k') | Source/core/css/parser/CSSParserValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698