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

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

Issue 19266007: Web Animations: Introduce ActiveAnimations and AnimationStack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 25 matching lines...) Expand all
36 #include "core/rendering/style/RenderStyle.h" 36 #include "core/rendering/style/RenderStyle.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 struct SameSizeAsElementRareData : NodeRareData { 40 struct SameSizeAsElementRareData : NodeRareData {
41 short indices[2]; 41 short indices[2];
42 unsigned bitfields; 42 unsigned bitfields;
43 RegionOversetState regionOversetState; 43 RegionOversetState regionOversetState;
44 LayoutSize sizeForResizing; 44 LayoutSize sizeForResizing;
45 IntSize scrollOffset; 45 IntSize scrollOffset;
46 void* pointers[10]; 46 void* pointers[9];
47 }; 47 };
48 48
49 COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), Ele mentRareDataShouldStaySmall); 49 COMPILE_ASSERT(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), Ele mentRareDataShouldStaySmall);
50 50
51 void ElementRareData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons t 51 void ElementRareData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) cons t
52 { 52 {
53 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); 53 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
54 NodeRareData::reportMemoryUsage(memoryObjectInfo); 54 NodeRareData::reportMemoryUsage(memoryObjectInfo);
55 55
56 info.addMember(m_computedStyle, "computedStyle"); 56 info.addMember(m_computedStyle, "computedStyle");
57 info.addMember(m_dataset, "dataset"); 57 info.addMember(m_dataset, "dataset");
58 info.addMember(m_classList, "classList"); 58 info.addMember(m_classList, "classList");
59 info.addMember(m_shadow, "shadow"); 59 info.addMember(m_shadow, "shadow");
60 info.addMember(m_attributeMap, "attributeMap"); 60 info.addMember(m_attributeMap, "attributeMap");
61 info.addMember(m_generatedBefore, "generatedBefore"); 61 info.addMember(m_generatedBefore, "generatedBefore");
62 info.addMember(m_generatedAfter, "generatedAfter"); 62 info.addMember(m_generatedAfter, "generatedAfter");
63 } 63 }
64 64
65 } // namespace WebCore 65 } // namespace WebCore
OLDNEW
« Source/core/css/resolver/StyleResolver.cpp ('K') | « Source/core/dom/ElementRareData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698