| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/observer/ResizeObservation.h" | 35 #include "core/observer/ResizeObservation.h" |
| 36 #include "core/observer/ResizeObserver.h" | 36 #include "core/observer/ResizeObserver.h" |
| 37 #include "core/style/ComputedStyle.h" | 37 #include "core/style/ComputedStyle.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 struct SameSizeAsElementRareData : NodeRareData { | 41 struct SameSizeAsElementRareData : NodeRareData { |
| 42 short indices[1]; | 42 short indices[1]; |
| 43 LayoutSize sizeForResizing; | 43 LayoutSize sizeForResizing; |
| 44 IntSize scrollOffset; | 44 IntSize scrollOffset; |
| 45 void* pointers[10]; | 45 void* pointers[2]; |
| 46 Member<void*> persistentMember[5]; | 46 Member<void*> members[13]; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o
wnerElement) | 49 CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o
wnerElement) |
| 50 { | 50 { |
| 51 if (!m_cssomWrapper) | 51 if (!m_cssomWrapper) |
| 52 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement); | 52 m_cssomWrapper = new InlineCSSStyleDeclaration(ownerElement); |
| 53 return *m_cssomWrapper; | 53 return *m_cssomWrapper; |
| 54 } | 54 } |
| 55 | 55 |
| 56 InlineStylePropertyMap& ElementRareData::ensureInlineStylePropertyMap(Element* o
wnerElement) | 56 InlineStylePropertyMap& ElementRareData::ensureInlineStylePropertyMap(Element* o
wnerElement) |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 visitor->traceWrappers(m_attributeMap); | 104 visitor->traceWrappers(m_attributeMap); |
| 105 visitor->traceWrappers(m_dataset); | 105 visitor->traceWrappers(m_dataset); |
| 106 visitor->traceWrappers(m_classList); | 106 visitor->traceWrappers(m_classList); |
| 107 visitor->traceWrappers(m_intersectionObserverData); | 107 visitor->traceWrappers(m_intersectionObserverData); |
| 108 NodeRareData::traceWrappersAfterDispatch(visitor); | 108 NodeRareData::traceWrappersAfterDispatch(visitor); |
| 109 } | 109 } |
| 110 | 110 |
| 111 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele
mentRareData should stay small"); | 111 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele
mentRareData should stay small"); |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| OLD | NEW |