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

Unified Diff: Source/core/css/CSSValueList.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.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSValueList.cpp
diff --git a/Source/core/css/CSSValueList.cpp b/Source/core/css/CSSValueList.cpp
index 1648f677020881dc368a930580cff5b98daf4748..6a7cafd9be1ca248fc9dcce65dbf3188dcb54c17 100644
--- a/Source/core/css/CSSValueList.cpp
+++ b/Source/core/css/CSSValueList.cpp
@@ -29,13 +29,13 @@ namespace blink {
CSSValueList::CSSValueList(ClassType classType, ValueListSeparator listSeparator)
: CSSValue(classType)
{
- m_valueListSeparator = listSeparator;
+ setValueListSeparator(listSeparator);
}
CSSValueList::CSSValueList(ValueListSeparator listSeparator)
: CSSValue(ValueListClass)
{
- m_valueListSeparator = listSeparator;
+ setValueListSeparator(listSeparator);
}
bool CSSValueList::removeAll(CSSValue* val)
@@ -65,7 +65,7 @@ bool CSSValueList::hasValue(CSSValue* val) const
PassRefPtrWillBeRawPtr<CSSValueList> CSSValueList::copy()
{
RefPtrWillBeRawPtr<CSSValueList> newList = nullptr;
- switch (m_valueListSeparator) {
+ switch (valueListSeparator()) {
case SpaceSeparator:
newList = createSpaceSeparated();
break;
@@ -87,7 +87,7 @@ String CSSValueList::customCSSText() const
{
StringBuilder result;
String separator;
- switch (m_valueListSeparator) {
+ switch (valueListSeparator()) {
case SpaceSeparator:
separator = " ";
break;
@@ -113,7 +113,7 @@ String CSSValueList::customCSSText() const
bool CSSValueList::equals(const CSSValueList& other) const
{
- return m_valueListSeparator == other.m_valueListSeparator && compareCSSValueVector(m_values, other.m_values);
+ return valueListSeparator() == other.valueListSeparator() && compareCSSValueVector(m_values, other.m_values);
}
bool CSSValueList::hasFailedOrCanceledSubresources() const
« no previous file with comments | « Source/core/css/CSSValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698