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

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

Issue 1233363002: CSSValue Immediates: Replace CSSPrimitiveValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_4_attempt_2
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/StylePropertySerializer.cpp » ('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..17f1cf77a28c73d18cf822eae42e00148136c57c 100644
--- a/Source/core/css/StylePropertySerializer.h
+++ b/Source/core/css/StylePropertySerializer.h
@@ -58,14 +58,14 @@ private:
// Only StylePropertySerializer uses the following two classes.
class PropertyValueForSerializer {
public:
- explicit PropertyValueForSerializer(StylePropertySet::PropertyReference property)
+ explicit PropertyValueForSerializer(const StylePropertySet::PropertyReference& property)
: m_value(property.value())
, m_id(property.id())
, m_isImportant(property.isImportant())
, 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)
« no previous file with comments | « Source/core/css/RuleFeature.cpp ('k') | Source/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698