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

Side by Side Diff: third_party/WebKit/Source/core/dom/ElementRareData.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #include "core/dom/CompositorProxiedPropertySet.h" 32 #include "core/dom/CompositorProxiedPropertySet.h"
33 #include "core/style/ComputedStyle.h" 33 #include "core/style/ComputedStyle.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 struct SameSizeAsElementRareData : NodeRareData { 37 struct SameSizeAsElementRareData : NodeRareData {
38 short indices[1]; 38 short indices[1];
39 LayoutSize sizeForResizing; 39 LayoutSize sizeForResizing;
40 IntSize scrollOffset; 40 IntSize scrollOffset;
41 void* pointers[13]; 41 void* pointers[13];
42 PersistentWillBeMember<void*> persistentMember[2]; 42 Member<void*> persistentMember[2];
43 }; 43 };
44 44
45 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o wnerElement) 45 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o wnerElement)
46 { 46 {
47 if (!m_cssomWrapper) 47 if (!m_cssomWrapper)
48 m_cssomWrapper = adoptPtrWillBeNoop(new InlineCSSStyleDeclaration(ownerE lement)); 48 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement);
49 return *m_cssomWrapper; 49 return *m_cssomWrapper;
50 } 50 }
51 51
52 AttrNodeList& ElementRareData::ensureAttrNodeList() 52 AttrNodeList& ElementRareData::ensureAttrNodeList()
53 { 53 {
54 if (!m_attrNodeList) 54 if (!m_attrNodeList)
55 m_attrNodeList = adoptPtrWillBeNoop(new AttrNodeList); 55 m_attrNodeList = adoptPtrWillBeNoop(new AttrNodeList);
56 return *m_attrNodeList; 56 return *m_attrNodeList;
57 } 57 }
58 58
(...skipping 13 matching lines...) Expand all
72 visitor->trace(m_generatedAfter); 72 visitor->trace(m_generatedAfter);
73 visitor->trace(m_generatedFirstLetter); 73 visitor->trace(m_generatedFirstLetter);
74 visitor->trace(m_backdrop); 74 visitor->trace(m_backdrop);
75 visitor->trace(m_intersectionObserverData); 75 visitor->trace(m_intersectionObserverData);
76 NodeRareData::traceAfterDispatch(visitor); 76 NodeRareData::traceAfterDispatch(visitor);
77 } 77 }
78 78
79 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele mentRareData should stay small"); 79 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele mentRareData should stay small");
80 80
81 } // namespace blink 81 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareData.h ('k') | third_party/WebKit/Source/core/dom/EmptyNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698