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

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

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/css/resolver/StyleResolver.cpp ('k') | sky/engine/core/dom/shadow/ShadowRoot.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.h
diff --git a/sky/engine/core/dom/shadow/ShadowRoot.h b/sky/engine/core/dom/shadow/ShadowRoot.h
index 258e82853dfeca9bd44323798edd5d6f52ab1ecc..53bc18360c78aa4f54bc35ed85b34dd480807899 100644
--- a/sky/engine/core/dom/shadow/ShadowRoot.h
+++ b/sky/engine/core/dom/shadow/ShadowRoot.h
@@ -62,16 +62,12 @@ public:
virtual void insertedInto(ContainerNode*) override;
virtual void removedFrom(ContainerNode*) override;
- void registerScopedHTMLStyleChild();
- void unregisterScopedHTMLStyleChild();
-
bool containsContentElements() const;
bool containsInsertionPoints() const { return containsContentElements(); }
bool containsShadowRoots() const;
// For Internals, don't use this.
unsigned childShadowRootCount() const;
- unsigned numberOfStyles() const { return m_numberOfStyles; }
void didAddInsertionPoint(InsertionPoint*);
void didRemoveInsertionPoint(InsertionPoint*);
@@ -105,7 +101,6 @@ private:
virtual PassRefPtr<Node> cloneNode(bool) override { return nullptr; }
OwnPtr<ShadowRootRareData> m_shadowRootRareData;
- unsigned m_numberOfStyles : 27;
unsigned m_registeredWithParentShadowRoot : 1;
unsigned m_descendantInsertionPointsIsValid : 1;
};
« no previous file with comments | « sky/engine/core/css/resolver/StyleResolver.cpp ('k') | sky/engine/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698