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

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

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/MediaList.idl ('k') | sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/PropertySetCSSStyleDeclaration.h
diff --git a/sky/engine/core/css/PropertySetCSSStyleDeclaration.h b/sky/engine/core/css/PropertySetCSSStyleDeclaration.h
index 7e802aefb0464d2b75b4174382b952e0ccfbff8f..75d6c4ed2da6ff3f1b2677f770f8ca4a1a39c2ad 100644
--- a/sky/engine/core/css/PropertySetCSSStyleDeclaration.h
+++ b/sky/engine/core/css/PropertySetCSSStyleDeclaration.h
@@ -33,7 +33,6 @@
namespace blink {
class CSSProperty;
-class CSSRule;
class CSSValue;
class Element;
class ExceptionState;
@@ -46,7 +45,6 @@ public:
StyleSheetContents* contextStyleSheet() const;
private:
- virtual CSSRule* parentRule() const override { return 0; }
virtual unsigned length() const override final;
virtual String item(unsigned index) const override final;
virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) override final;
@@ -91,40 +89,6 @@ protected:
RawPtr<MutableStylePropertySet> m_propertySet; // Cannot be null
};
-class StyleRuleCSSStyleDeclaration final : public PropertySetCSSStyleDeclaration
-{
-public:
- static PassRefPtr<StyleRuleCSSStyleDeclaration> create(MutableStylePropertySet& propertySet, CSSRule* parentRule)
- {
- return adoptRef(new StyleRuleCSSStyleDeclaration(propertySet, parentRule));
- }
-
-#if !ENABLE(OILPAN)
- void clearParentRule() { m_parentRule = nullptr; }
-
- virtual void ref() override;
- virtual void deref() override;
-#endif
-
- void reattach(MutableStylePropertySet&);
-
-private:
- StyleRuleCSSStyleDeclaration(MutableStylePropertySet&, CSSRule*);
- virtual ~StyleRuleCSSStyleDeclaration();
-
- virtual CSSStyleSheet* parentStyleSheet() const override;
-
- virtual CSSRule* parentRule() const override { return m_parentRule; }
-
- virtual void willMutate() override;
- virtual void didMutate(MutationType) override;
-
-#if !ENABLE(OILPAN)
- unsigned m_refCount;
-#endif
- RawPtr<CSSRule> m_parentRule;
-};
-
class InlineCSSStyleDeclaration final : public AbstractPropertySetCSSStyleDeclaration
{
public:
« no previous file with comments | « sky/engine/core/css/MediaList.idl ('k') | sky/engine/core/css/PropertySetCSSStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698