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

Unified Diff: sky/engine/core/dom/shadow/ShadowRoot.cpp

Issue 796713002: Turn StyleSharing to 11. (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
Index: sky/engine/core/dom/shadow/ShadowRoot.cpp
diff --git a/sky/engine/core/dom/shadow/ShadowRoot.cpp b/sky/engine/core/dom/shadow/ShadowRoot.cpp
index cc325872964688545343285018b9c5da8765431d..20862cdeea11902e3165b9672278ed66074c8f63 100644
--- a/sky/engine/core/dom/shadow/ShadowRoot.cpp
+++ b/sky/engine/core/dom/shadow/ShadowRoot.cpp
@@ -58,9 +58,6 @@ ShadowRoot::ShadowRoot(Document& document)
ShadowRoot::~ShadowRoot()
{
- if (m_shadowRootRareData && m_shadowRootRareData->styleSheets())
- m_shadowRootRareData->styleSheets()->detachFromDocument();
-
document().styleEngine()->didRemoveShadowRoot(this);
// We cannot let ContainerNode destructor call willBeDeletedFromDocument()
@@ -235,12 +232,4 @@ const Vector<RefPtr<InsertionPoint> >& ShadowRoot::descendantInsertionPoints()
return m_shadowRootRareData->descendantInsertionPoints();
}
-StyleSheetList* ShadowRoot::styleSheets()
-{
- if (!ensureShadowRootRareData()->styleSheets())
- m_shadowRootRareData->setStyleSheets(StyleSheetList::create(this));
-
- return m_shadowRootRareData->styleSheets();
-}
-
}

Powered by Google App Engine
This is Rietveld 408576698