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

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

Issue 15923002: Move CSSOM classes to using MutableStylePropertySet over StylePropertySet. (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/StyleRule.h ('k') | Source/core/css/WebKitCSSKeyframeRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleRule.cpp
diff --git a/Source/core/css/StyleRule.cpp b/Source/core/css/StyleRule.cpp
index 5578cb5fd393ddc55950a8c7d6fa7d75229efb8b..41cda8cec35377e119e367a1231a7767a8c5e7fa 100644
--- a/Source/core/css/StyleRule.cpp
+++ b/Source/core/css/StyleRule.cpp
@@ -270,11 +270,11 @@ StyleRule::~StyleRule()
{
}
-StylePropertySet* StyleRule::mutableProperties()
+MutableStylePropertySet* StyleRule::mutableProperties()
{
if (!m_properties->isMutable())
m_properties = m_properties->mutableCopy();
- return m_properties.get();
+ return static_cast<MutableStylePropertySet*>(m_properties.get());
}
void StyleRule::setProperties(PassRefPtr<StylePropertySet> properties)
@@ -298,11 +298,11 @@ StyleRulePage::~StyleRulePage()
{
}
-StylePropertySet* StyleRulePage::mutableProperties()
+MutableStylePropertySet* StyleRulePage::mutableProperties()
{
if (!m_properties->isMutable())
m_properties = m_properties->mutableCopy();
- return m_properties.get();
+ return static_cast<MutableStylePropertySet*>(m_properties.get());
}
void StyleRulePage::setProperties(PassRefPtr<StylePropertySet> properties)
@@ -332,11 +332,11 @@ StyleRuleFontFace::~StyleRuleFontFace()
{
}
-StylePropertySet* StyleRuleFontFace::mutableProperties()
+MutableStylePropertySet* StyleRuleFontFace::mutableProperties()
{
if (!m_properties->isMutable())
m_properties = m_properties->mutableCopy();
- return m_properties.get();
+ return static_cast<MutableStylePropertySet*>(m_properties.get());
}
void StyleRuleFontFace::setProperties(PassRefPtr<StylePropertySet> properties)
@@ -451,11 +451,11 @@ StyleRuleViewport::~StyleRuleViewport()
{
}
-StylePropertySet* StyleRuleViewport::mutableProperties()
+MutableStylePropertySet* StyleRuleViewport::mutableProperties()
{
if (!m_properties->isMutable())
m_properties = m_properties->mutableCopy();
- return m_properties.get();
+ return static_cast<MutableStylePropertySet*>(m_properties.get());
}
void StyleRuleViewport::setProperties(PassRefPtr<StylePropertySet> properties)
@@ -487,11 +487,11 @@ StyleRuleFilter::~StyleRuleFilter()
{
}
-StylePropertySet* StyleRuleFilter::mutableProperties()
+MutableStylePropertySet* StyleRuleFilter::mutableProperties()
{
if (!m_properties->isMutable())
m_properties = m_properties->mutableCopy();
- return m_properties.get();
+ return static_cast<MutableStylePropertySet*>(m_properties.get());
}
void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties)
« no previous file with comments | « Source/core/css/StyleRule.h ('k') | Source/core/css/WebKitCSSKeyframeRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698