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

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

Issue 195953003: Oilpan: Move CSSStyleDeclaration and subclasses to the heap using transistion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
Index: Source/core/dom/ElementRareData.cpp
diff --git a/Source/core/dom/ElementRareData.cpp b/Source/core/dom/ElementRareData.cpp
index f87ff4227d432d96e6c8f492c834a673df8292b9..4511bed0332dd68090c9b9c19cbd5a85e379c99b 100644
--- a/Source/core/dom/ElementRareData.cpp
+++ b/Source/core/dom/ElementRareData.cpp
@@ -40,13 +40,14 @@ struct SameSizeAsElementRareData : NodeRareData {
unsigned bitfields;
LayoutSize sizeForResizing;
IntSize scrollOffset;
- void* pointers[12];
+ void* pointers[11];
+ OwnPtrWillBePersistent<InlineCSSStyleDeclaration> cssomWrapper;
haraken 2014/03/20 11:22:38 Increasing the size of ElementRareData is sad. We
wibling-chromium 2014/03/20 11:59:33 Yes, thankfully this should be larger while it is
};
CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* ownerElement)
{
if (!m_cssomWrapper)
- m_cssomWrapper = adoptPtr(new InlineCSSStyleDeclaration(ownerElement));
+ m_cssomWrapper = adoptPtrWillBeNoop(new InlineCSSStyleDeclaration(ownerElement));
return *m_cssomWrapper;
}

Powered by Google App Engine
This is Rietveld 408576698