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

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

Issue 797873002: Remove style element counting in ShadowRoot. (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/dom/shadow/ShadowRoot.h ('k') | sky/engine/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20862cdeea11902e3165b9672278ed66074c8f63..8921aa3b8d9eec69426ee910f102f4e0079071d3 100644
--- a/sky/engine/core/dom/shadow/ShadowRoot.cpp
+++ b/sky/engine/core/dom/shadow/ShadowRoot.cpp
@@ -50,7 +50,6 @@ COMPILE_ASSERT(sizeof(ShadowRoot) == sizeof(SameSizeAsShadowRoot), shadowroot_sh
ShadowRoot::ShadowRoot(Document& document)
: DocumentFragment(0, CreateShadowRoot)
, TreeScope(*this, document)
- , m_numberOfStyles(0)
, m_registeredWithParentShadowRoot(false)
, m_descendantInsertionPointsIsValid(false)
{
@@ -146,17 +145,6 @@ void ShadowRoot::removedFrom(ContainerNode* insertionPoint)
DocumentFragment::removedFrom(insertionPoint);
}
-void ShadowRoot::registerScopedHTMLStyleChild()
-{
- ++m_numberOfStyles;
-}
-
-void ShadowRoot::unregisterScopedHTMLStyleChild()
-{
- ASSERT(m_numberOfStyles > 0);
- --m_numberOfStyles;
-}
-
ShadowRootRareData* ShadowRoot::ensureShadowRootRareData()
{
if (m_shadowRootRareData)
« no previous file with comments | « sky/engine/core/dom/shadow/ShadowRoot.h ('k') | sky/engine/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698