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

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: Review feedback 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
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/Position.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 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;
};
CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* ownerElement)
{
if (!m_cssomWrapper)
- m_cssomWrapper = adoptPtr(new InlineCSSStyleDeclaration(ownerElement));
+ m_cssomWrapper = adoptPtrWillBeNoop(new InlineCSSStyleDeclaration(ownerElement));
return *m_cssomWrapper;
}
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/Position.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698