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

Unified Diff: Source/core/css/CSSValue.cpp

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 | « Source/core/css/CSSValue.h ('k') | Source/core/css/CSSValueList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSValue.cpp
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp
index 4f9805848f9867caff5fa16af3943f92b8d4b4b2..9fa0ba6f91a9b11f02038e38e4f05ce5e8d9d902 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -64,7 +64,7 @@ static_assert(sizeof(CSSValue) <= sizeof(SameSizeAsCSSValue), "CSSValue should s
bool CSSValue::isImplicitInitialValue() const
{
- return m_classType == InitialClass && toCSSInitialValue(this)->isImplicit();
+ return classType() == InitialClass && toCSSInitialValue(this)->isImplicit();
}
bool CSSValue::hasFailedOrCanceledSubresources() const
@@ -91,7 +91,7 @@ inline static bool compareCSSValues(const CSSValue& first, const CSSValue& secon
bool CSSValue::equals(const CSSValue& other) const
{
- if (m_classType == other.m_classType) {
+ if (classType() == other.classType()) {
switch (classType()) {
case BorderImageSliceClass:
return compareCSSValues<CSSBorderImageSliceValue>(*this, other);
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/CSSValueList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698