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

Unified Diff: Source/core/css/CSSPrimitiveValue.h

Issue 1310603004: WIP: Reduce sizeof(CSSValue) by 8 byte Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « no previous file | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValue.h
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h
index 47d1afbb4626e1cc641dd24cc9183d615deaf045..339fe9a4fd1edfd3e23ff3c7570d740cff14615b 100644
--- a/Source/core/css/CSSPrimitiveValue.h
+++ b/Source/core/css/CSSPrimitiveValue.h
@@ -243,7 +243,7 @@ public:
static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> createAllowingMarginQuirk(double value, UnitType type)
{
CSSPrimitiveValue* quirkValue = new CSSPrimitiveValue(value, type);
- quirkValue->m_isQuirkValue = true;
+ quirkValue->setIsQuirkValue(true);
return adoptRefWillBeNoop(quirkValue);
}
@@ -287,8 +287,6 @@ public:
static const char* unitTypeToString(UnitType);
String customCSSText() const;
- bool isQuirkValue() const { return m_isQuirkValue; }
-
bool equals(const CSSPrimitiveValue&) const;
DECLARE_TRACE_AFTER_DISPATCH();
@@ -337,7 +335,7 @@ private:
double computeLengthDouble(const CSSToLengthConversionData&) const;
- inline UnitType type() const { return static_cast<UnitType>(m_primitiveUnitType); }
+ inline UnitType type() const { return static_cast<UnitType>(primitiveUnitType()); }
union {
CSSPropertyID propertyID;
« no previous file with comments | « no previous file | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698