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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp

Issue 2472613004: Remove ShadowRoot::numberOfStyles(). (Closed)
Patch Set: Rebased Created 4 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
Index: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
index d83f657479a485ca74ebbbeae690c675c3dcf2c0..fad2a8a0642d040e088ab104eaa8a8e0aeb3a67a 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp
@@ -57,7 +57,6 @@ ShadowRoot::ShadowRoot(Document& document, ShadowRootType type)
: DocumentFragment(0, CreateShadowRoot),
TreeScope(*this, document),
m_styleSheetList(nullptr),
- m_numberOfStyles(0),
m_childShadowRootCount(0),
m_type(static_cast<unsigned>(type)),
m_registeredWithParentShadowRoot(false),
@@ -205,15 +204,6 @@ void ShadowRoot::childrenChanged(const ChildrenChange& change) {
}
}
-void ShadowRoot::registerScopedHTMLStyleChild() {
- ++m_numberOfStyles;
-}
-
-void ShadowRoot::unregisterScopedHTMLStyleChild() {
- DCHECK_GT(m_numberOfStyles, 0u);
- --m_numberOfStyles;
-}
-
ShadowRootRareDataV0& ShadowRoot::ensureShadowRootRareDataV0() {
if (m_shadowRootRareDataV0)
return *m_shadowRootRareDataV0;
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h ('k') | third_party/WebKit/Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698