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

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

Issue 17176018: [CSS Regions] Add new regionOversetChange event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Integrated styling fixes Created 7 years, 6 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
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/EventNames.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/dom/ElementRareData.h" 32 #include "core/dom/ElementRareData.h"
33 33
34 #include "core/dom/WebCoreMemoryInstrumentation.h" 34 #include "core/dom/WebCoreMemoryInstrumentation.h"
35 #include "core/rendering/RegionOversetState.h"
35 #include "core/rendering/style/RenderStyle.h" 36 #include "core/rendering/style/RenderStyle.h"
36 37
37 namespace WebCore { 38 namespace WebCore {
38 39
39 struct SameSizeAsElementRareData : NodeRareData { 40 struct SameSizeAsElementRareData : NodeRareData {
40 short indices[2]; 41 short indices[2];
41 unsigned bitfields; 42 unsigned bitfields;
43 RegionOversetState regionOversetState;
42 LayoutSize sizeForResizing; 44 LayoutSize sizeForResizing;
43 IntSize scrollOffset; 45 IntSize scrollOffset;
44 void* pointers[9]; 46 void* pointers[9];
45 }; 47 };
46 48
47 COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), Ele mentRareDataShouldStaySmall); 49 COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), Ele mentRareDataShouldStaySmall);
48 50
49 void ElementRareData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons t 51 void ElementRareData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons t
50 { 52 {
51 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); 53 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
52 NodeRareData::reportMemoryUsage(memoryObjectInfo); 54 NodeRareData::reportMemoryUsage(memoryObjectInfo);
53 55
54 info.addMember(m_computedStyle, "computedStyle"); 56 info.addMember(m_computedStyle, "computedStyle");
55 info.addMember(m_dataset, "dataset"); 57 info.addMember(m_dataset, "dataset");
56 info.addMember(m_classList, "classList"); 58 info.addMember(m_classList, "classList");
57 info.addMember(m_shadow, "shadow"); 59 info.addMember(m_shadow, "shadow");
58 info.addMember(m_attributeMap, "attributeMap"); 60 info.addMember(m_attributeMap, "attributeMap");
59 info.addMember(m_generatedBefore, "generatedBefore"); 61 info.addMember(m_generatedBefore, "generatedBefore");
60 info.addMember(m_generatedAfter, "generatedAfter"); 62 info.addMember(m_generatedAfter, "generatedAfter");
61 } 63 }
62 64
63 } // namespace WebCore 65 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/ElementRareData.h ('k') | Source/core/dom/EventNames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698