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

Unified Diff: Source/core/dom/ElementRareData.cpp

Issue 265793017: Oilpan: move node/element rare data objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + add some asserts for registration Node being present. Created 6 years, 7 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 | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/MutationObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementRareData.cpp
diff --git a/Source/core/dom/ElementRareData.cpp b/Source/core/dom/ElementRareData.cpp
index 00c44a98ac8c111288dd7253400206006b5efb07..39f5552c8175d5ecad50e57ee68f3450898e0863 100644
--- a/Source/core/dom/ElementRareData.cpp
+++ b/Source/core/dom/ElementRareData.cpp
@@ -39,7 +39,7 @@ struct SameSizeAsElementRareData : NodeRareData {
short indices[2];
IntSize scrollOffset;
void* pointers[11];
- OwnPtrWillBePersistent<ActiveAnimations> activeAnimations;
+ OwnPtrWillBeMember<ActiveAnimations> activeAnimations;
};
CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* ownerElement)
@@ -49,6 +49,13 @@ CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o
return *m_cssomWrapper;
}
+void ElementRareData::traceAfterDispatch(Visitor* visitor)
+{
+ visitor->trace(m_shadow);
+ visitor->trace(m_cssomWrapper);
+ visitor->trace(m_activeAnimations);
+ NodeRareData::traceAfterDispatch(visitor);
+}
COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), ElementRareDataShouldStaySmall);
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/MutationObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698