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

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

Issue 1238943004: CSSValue Immediates: Replace CSSValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 5 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/RuleFeature.cpp ('k') | Source/core/css/StylePropertySet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StylePropertySerializer.h
diff --git a/Source/core/css/StylePropertySerializer.h b/Source/core/css/StylePropertySerializer.h
index 310e1b4aec0ac6e0e1f9c457f65732f122ae00ff..e1e4f9e20807fd38c84f452d0e2de1e31b4d7bf1 100644
--- a/Source/core/css/StylePropertySerializer.h
+++ b/Source/core/css/StylePropertySerializer.h
@@ -65,7 +65,7 @@ private:
, m_isImplicit(property.isImplicit())
, m_isInherited(property.isInherited()) { }
- PropertyValueForSerializer(CSSPropertyID id, const CSSValue value, bool isImportant)
+ PropertyValueForSerializer(CSSPropertyID id, const CSSValue& value, bool isImportant)
: m_value(value)
, m_id(id)
, m_isImportant(isImportant)
@@ -73,7 +73,7 @@ private:
, m_isInherited(value.isInheritedValue()) { }
CSSPropertyID id() const { return m_id; }
- const CSSValue value() const { return m_value; }
+ const CSSValue& value() const { return m_value; }
bool isImportant() const { return m_isImportant; }
bool isImplicit() const { return m_isImplicit; }
bool isInherited() const { return m_isInherited; }
« no previous file with comments | « Source/core/css/RuleFeature.cpp ('k') | Source/core/css/StylePropertySet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698