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

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

Issue 15864004: Move create() methods from StylePropertySet to MutableStylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/StylePropertySet.h ('k') | Source/core/css/WebKitCSSMatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StylePropertySet.cpp
diff --git a/Source/core/css/StylePropertySet.cpp b/Source/core/css/StylePropertySet.cpp
index 9d0b4817464208d92cd7a7ac77a0dc7aec4698ae..731bac5da967c1d5d228f5a3e358b240520bce65 100644
--- a/Source/core/css/StylePropertySet.cpp
+++ b/Source/core/css/StylePropertySet.cpp
@@ -510,7 +510,7 @@ PassRefPtr<MutableStylePropertySet> StylePropertySet::copyPropertiesInSet(const
if (value)
list.append(CSSProperty(properties[i], value.release(), false));
}
- return static_pointer_cast<MutableStylePropertySet>(StylePropertySet::create(list.data(), list.size()));
+ return MutableStylePropertySet::create(list.data(), list.size());
}
PropertySetCSSStyleDeclaration* StylePropertySet::cssStyleDeclaration()
@@ -581,12 +581,12 @@ void StylePropertySet::showStyle()
}
#endif
-PassRefPtr<StylePropertySet> StylePropertySet::create(CSSParserMode cssParserMode)
+PassRefPtr<MutableStylePropertySet> MutableStylePropertySet::create(CSSParserMode cssParserMode)
{
return adoptRef(new MutableStylePropertySet(cssParserMode));
}
-PassRefPtr<StylePropertySet> StylePropertySet::create(const CSSProperty* properties, unsigned count)
+PassRefPtr<MutableStylePropertySet> MutableStylePropertySet::create(const CSSProperty* properties, unsigned count)
{
return adoptRef(new MutableStylePropertySet(properties, count));
}
« no previous file with comments | « Source/core/css/StylePropertySet.h ('k') | Source/core/css/WebKitCSSMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698