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

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

Issue 718873003: Remove most of config.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/CSSRule.cpp ('k') | sky/engine/core/css/CSSValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSStyleSheet.cpp
diff --git a/sky/engine/core/css/CSSStyleSheet.cpp b/sky/engine/core/css/CSSStyleSheet.cpp
index a2f336a38b87350452f8eb2503ffa1094ef769b2..5cc8e87701988b87d2b853edaf162a7a779c025f 100644
--- a/sky/engine/core/css/CSSStyleSheet.cpp
+++ b/sky/engine/core/css/CSSStyleSheet.cpp
@@ -54,10 +54,8 @@ public:
private:
StyleSheetCSSRuleList(CSSStyleSheet* sheet) : m_styleSheet(sheet) { }
-#if !ENABLE(OILPAN)
virtual void ref() override { m_styleSheet->ref(); }
virtual void deref() override { m_styleSheet->deref(); }
-#endif
virtual unsigned length() const override { return m_styleSheet->length(); }
virtual CSSRule* item(unsigned index) const override { return m_styleSheet->item(index); }
@@ -124,7 +122,6 @@ CSSStyleSheet::~CSSStyleSheet()
// its RuleCSSOMWrappers die together and we don't need to clear them here.
// Also with oilpan the StyleSheetContents client pointers are weak and
// therefore do not need to be cleared here.
-#if !ENABLE(OILPAN)
// For style rules outside the document, .parentStyleSheet can become null even if the style rule
// is still observable from JavaScript. This matches the behavior of .parentNode for nodes, but
// it's not ideal because it makes the CSSOM's behavior depend on the timing of garbage collection.
@@ -137,7 +134,6 @@ CSSStyleSheet::~CSSStyleSheet()
m_mediaCSSOMWrapper->clearParentStyleSheet();
m_contents->unregisterClient(this);
-#endif
}
void CSSStyleSheet::willMutateRules()
« no previous file with comments | « sky/engine/core/css/CSSRule.cpp ('k') | sky/engine/core/css/CSSValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698