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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRootRareDataV0.h

Issue 1904923002: Reduce a shadow root object's size by not inheriting DoublyLinkedList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@raredatav0
Patch Set: fix typo Created 4 years, 8 months 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 | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/shadow/ShadowRootRareDataV0.h
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRootRareDataV0.h b/third_party/WebKit/Source/core/dom/shadow/ShadowRootRareDataV0.h
index c0f62d247576d495ed2339e7c024cda01eebdd69..6c7e0338e34d72eb0a58a2d96221ec51e60b3858 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRootRareDataV0.h
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRootRareDataV0.h
@@ -59,13 +59,23 @@ public:
void setDescendantInsertionPoints(HeapVector<Member<InsertionPoint>>& list) { m_descendantInsertionPoints.swap(list); }
void clearDescendantInsertionPoints() { m_descendantInsertionPoints.clear(); }
+ void setYoungerShadowRoot(ShadowRoot& youngerShadowRoot) { m_youngerShadowRoot = &youngerShadowRoot; }
+ void setOlderShadowRoot(ShadowRoot& olderShadowRoot) { m_olderShadowRoot = &olderShadowRoot; }
+
+ ShadowRoot* youngerShadowRoot() const { return m_youngerShadowRoot; }
+ ShadowRoot* olderShadowRoot() const { return m_olderShadowRoot; }
+
DEFINE_INLINE_TRACE()
{
+ visitor->trace(m_youngerShadowRoot);
+ visitor->trace(m_olderShadowRoot);
visitor->trace(m_shadowInsertionPointOfYoungerShadowRoot);
visitor->trace(m_descendantInsertionPoints);
}
private:
+ Member<ShadowRoot> m_youngerShadowRoot;
+ Member<ShadowRoot> m_olderShadowRoot;
Member<HTMLShadowElement> m_shadowInsertionPointOfYoungerShadowRoot;
unsigned m_descendantShadowElementCount;
unsigned m_descendantContentElementCount;
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698