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

Unified Diff: sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp

Issue 780483002: Remove the CSSOM. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/css/PropertySetCSSStyleDeclaration.h ('k') | sky/engine/core/css/RuleSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
diff --git a/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp b/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
index a6e6dfa4f261a37bd8c9ccfc0e753a21ad8bfbe9..503a0e4587299e962093ac426c851ffa0336c467 100644
--- a/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
+++ b/sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp
@@ -280,71 +280,6 @@ bool AbstractPropertySetCSSStyleDeclaration::cssPropertyMatches(CSSPropertyID pr
return propertySet().propertyMatches(propertyID, propertyValue);
}
-StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration(MutableStylePropertySet& propertySetArg, CSSRule* parentRule)
- : PropertySetCSSStyleDeclaration(propertySetArg)
-#if !ENABLE(OILPAN)
- , m_refCount(1)
-#endif
- , m_parentRule(parentRule)
-{
-#if !ENABLE(OILPAN)
- m_propertySet->ref();
-#endif
-}
-
-StyleRuleCSSStyleDeclaration::~StyleRuleCSSStyleDeclaration()
-{
-#if !ENABLE(OILPAN)
- m_propertySet->deref();
-#endif
-}
-
-#if !ENABLE(OILPAN)
-void StyleRuleCSSStyleDeclaration::ref()
-{
- ++m_refCount;
-}
-
-void StyleRuleCSSStyleDeclaration::deref()
-{
- ASSERT(m_refCount);
- if (!--m_refCount)
- delete this;
-}
-#endif
-
-void StyleRuleCSSStyleDeclaration::willMutate()
-{
- if (m_parentRule && m_parentRule->parentStyleSheet())
- m_parentRule->parentStyleSheet()->willMutateRules();
-}
-
-void StyleRuleCSSStyleDeclaration::didMutate(MutationType type)
-{
- if (type == PropertyChanged)
- m_cssomCSSValueClones.clear();
-
- // Style sheet mutation needs to be signaled even if the change failed. willMutateRules/didMutateRules must pair.
- if (m_parentRule && m_parentRule->parentStyleSheet())
- m_parentRule->parentStyleSheet()->didMutateRules();
-}
-
-CSSStyleSheet* StyleRuleCSSStyleDeclaration::parentStyleSheet() const
-{
- return m_parentRule ? m_parentRule->parentStyleSheet() : 0;
-}
-
-void StyleRuleCSSStyleDeclaration::reattach(MutableStylePropertySet& propertySet)
-{
-#if !ENABLE(OILPAN)
- m_propertySet->deref();
-#endif
- m_propertySet = &propertySet;
-#if !ENABLE(OILPAN)
- m_propertySet->ref();
-#endif
-}
-
MutableStylePropertySet& InlineCSSStyleDeclaration::propertySet() const
{
return m_parentElement->ensureMutableInlineStyle();
« no previous file with comments | « sky/engine/core/css/PropertySetCSSStyleDeclaration.h ('k') | sky/engine/core/css/RuleSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698