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

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

Issue 15746004: Rename/tweak some StylePropertySet/CSSStyleDeclaration copying functions. (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.cpp ('k') | Source/core/css/WebKitCSSKeyframeRule.cpp » ('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 5ffe9ef32b5d74942d10d1bae1b73b2e21ae5f05..5578cb5fd393ddc55950a8c7d6fa7d75229efb8b 100644
--- a/Source/core/css/StyleRule.cpp
+++ b/Source/core/css/StyleRule.cpp
@@ -261,7 +261,7 @@ StyleRule::StyleRule(int sourceLine)
StyleRule::StyleRule(const StyleRule& o)
: StyleRuleBase(o)
- , m_properties(o.m_properties->copy())
+ , m_properties(o.m_properties->mutableCopy())
, m_selectorList(o.m_selectorList)
{
}
@@ -273,7 +273,7 @@ StyleRule::~StyleRule()
StylePropertySet* StyleRule::mutableProperties()
{
if (!m_properties->isMutable())
- m_properties = m_properties->copy();
+ m_properties = m_properties->mutableCopy();
return m_properties.get();
}
@@ -289,7 +289,7 @@ StyleRulePage::StyleRulePage()
StyleRulePage::StyleRulePage(const StyleRulePage& o)
: StyleRuleBase(o)
- , m_properties(o.m_properties->copy())
+ , m_properties(o.m_properties->mutableCopy())
, m_selectorList(o.m_selectorList)
{
}
@@ -301,7 +301,7 @@ StyleRulePage::~StyleRulePage()
StylePropertySet* StyleRulePage::mutableProperties()
{
if (!m_properties->isMutable())
- m_properties = m_properties->copy();
+ m_properties = m_properties->mutableCopy();
return m_properties.get();
}
@@ -324,7 +324,7 @@ StyleRuleFontFace::StyleRuleFontFace()
StyleRuleFontFace::StyleRuleFontFace(const StyleRuleFontFace& o)
: StyleRuleBase(o)
- , m_properties(o.m_properties->copy())
+ , m_properties(o.m_properties->mutableCopy())
{
}
@@ -335,7 +335,7 @@ StyleRuleFontFace::~StyleRuleFontFace()
StylePropertySet* StyleRuleFontFace::mutableProperties()
{
if (!m_properties->isMutable())
- m_properties = m_properties->copy();
+ m_properties = m_properties->mutableCopy();
return m_properties.get();
}
@@ -443,7 +443,7 @@ StyleRuleViewport::StyleRuleViewport()
StyleRuleViewport::StyleRuleViewport(const StyleRuleViewport& o)
: StyleRuleBase(o)
- , m_properties(o.m_properties->copy())
+ , m_properties(o.m_properties->mutableCopy())
{
}
@@ -454,7 +454,7 @@ StyleRuleViewport::~StyleRuleViewport()
StylePropertySet* StyleRuleViewport::mutableProperties()
{
if (!m_properties->isMutable())
- m_properties = m_properties->copy();
+ m_properties = m_properties->mutableCopy();
return m_properties.get();
}
@@ -479,7 +479,7 @@ StyleRuleFilter::StyleRuleFilter(const String& filterName)
StyleRuleFilter::StyleRuleFilter(const StyleRuleFilter& o)
: StyleRuleBase(o)
, m_filterName(o.m_filterName)
- , m_properties(o.m_properties->copy())
+ , m_properties(o.m_properties->mutableCopy())
{
}
@@ -490,7 +490,7 @@ StyleRuleFilter::~StyleRuleFilter()
StylePropertySet* StyleRuleFilter::mutableProperties()
{
if (!m_properties->isMutable())
- m_properties = m_properties->copy();
+ m_properties = m_properties->mutableCopy();
return m_properties.get();
}
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/css/WebKitCSSKeyframeRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698