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

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

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: Redo CSSParserToken::operator==() Created 4 years, 8 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: third_party/WebKit/Source/core/css/parser/CSSParserToken.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
index f857b3d9e4747a7f16e8abfbcb6bbec315029fac..6e57a72270e29cd148ec4f9d53fb5df5c38b25b3 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
@@ -83,6 +83,7 @@ public:
CSSParserToken(HashTokenType, CSSParserString);
bool operator==(const CSSParserToken& other) const;
+ bool operator!=(const CSSParserToken& other) const { return !(*this == other); }
// Converts NumberToken to DimensionToken.
void convertToDimensionWithUnit(CSSParserString);
@@ -133,6 +134,8 @@ private:
unsigned m_numericSign : 2; // NumericSign
unsigned m_unit : 7; // CSSPrimitiveValue::UnitType
+ bool valueDataCharRawEqual(const CSSParserToken& other) const;
+
// m_value... is an unpacked CSSParserString so that we can pack it
// tightly with the rest of this object for a smaller object size.
bool m_valueIs8Bit : 1;

Powered by Google App Engine
This is Rietveld 408576698