OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 #include "core/css/cssom/InlineStylePropertyMap.h" | 33 #include "core/css/cssom/InlineStylePropertyMap.h" |
34 #include "core/dom/CompositorProxiedPropertySet.h" | 34 #include "core/dom/CompositorProxiedPropertySet.h" |
35 #include "core/style/ComputedStyle.h" | 35 #include "core/style/ComputedStyle.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 struct SameSizeAsElementRareData : NodeRareData { | 39 struct SameSizeAsElementRareData : NodeRareData { |
40 short indices[1]; | 40 short indices[1]; |
41 LayoutSize sizeForResizing; | 41 LayoutSize sizeForResizing; |
42 IntSize scrollOffset; | 42 IntSize scrollOffset; |
43 void* pointers[13]; | 43 void* pointers[10]; |
44 Member<void*> persistentMember[3]; | 44 Member<void*> persistentMember[3]; |
45 }; | 45 }; |
46 | 46 |
47 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o
wnerElement) | 47 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o
wnerElement) |
48 { | 48 { |
49 if (!m_cssomWrapper) | 49 if (!m_cssomWrapper) |
50 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement); | 50 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement); |
51 return *m_cssomWrapper; | 51 return *m_cssomWrapper; |
52 } | 52 } |
53 | 53 |
(...skipping 15 matching lines...) Expand all Loading... |
69 DEFINE_TRACE_AFTER_DISPATCH(ElementRareData) | 69 DEFINE_TRACE_AFTER_DISPATCH(ElementRareData) |
70 { | 70 { |
71 visitor->trace(m_dataset); | 71 visitor->trace(m_dataset); |
72 visitor->trace(m_classList); | 72 visitor->trace(m_classList); |
73 visitor->trace(m_shadow); | 73 visitor->trace(m_shadow); |
74 visitor->trace(m_attributeMap); | 74 visitor->trace(m_attributeMap); |
75 visitor->trace(m_attrNodeList); | 75 visitor->trace(m_attrNodeList); |
76 visitor->trace(m_elementAnimations); | 76 visitor->trace(m_elementAnimations); |
77 visitor->trace(m_cssomWrapper); | 77 visitor->trace(m_cssomWrapper); |
78 visitor->trace(m_cssomMapWrapper); | 78 visitor->trace(m_cssomMapWrapper); |
| 79 visitor->trace(m_pseudoElementData); |
79 visitor->trace(m_customElementDefinition); | 80 visitor->trace(m_customElementDefinition); |
80 visitor->trace(m_generatedBefore); | |
81 visitor->trace(m_generatedAfter); | |
82 visitor->trace(m_generatedFirstLetter); | |
83 visitor->trace(m_backdrop); | |
84 visitor->trace(m_intersectionObserverData); | 81 visitor->trace(m_intersectionObserverData); |
85 NodeRareData::traceAfterDispatch(visitor); | 82 NodeRareData::traceAfterDispatch(visitor); |
86 } | 83 } |
87 | 84 |
88 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele
mentRareData should stay small"); | 85 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele
mentRareData should stay small"); |
89 | 86 |
90 } // namespace blink | 87 } // namespace blink |
OLD | NEW |