| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 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/ProxiedPropertyCounts.h" |
| 34 #include "core/style/ComputedStyle.h" | 35 #include "core/style/ComputedStyle.h" |
| 35 | 36 |
| 36 namespace blink { | 37 namespace blink { |
| 37 | 38 |
| 38 struct SameSizeAsElementRareData : NodeRareData { | 39 struct SameSizeAsElementRareData : NodeRareData { |
| 39 short indices[2]; | 40 short indices[1]; |
| 40 LayoutSize sizeForResizing; | 41 LayoutSize sizeForResizing; |
| 41 IntSize scrollOffset; | 42 IntSize scrollOffset; |
| 42 void* pointer; | 43 void* pointers[13]; |
| 43 RawPtrWillBeMember<void*> willbeMember[11]; | 44 PersistentWillBeMember<void*> member[1]; |
| 44 PersistentWillBeMember<void*> persistent[1]; | |
| 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 = adoptPtrWillBeNoop(new InlineCSSStyleDeclaration(ownerE
lement)); | 50 m_cssomWrapper = adoptPtrWillBeNoop(new InlineCSSStyleDeclaration(ownerE
lement)); |
| 51 return *m_cssomWrapper; | 51 return *m_cssomWrapper; |
| 52 } | 52 } |
| 53 | 53 |
| 54 AttrNodeList& ElementRareData::ensureAttrNodeList() | 54 AttrNodeList& ElementRareData::ensureAttrNodeList() |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 visitor->trace(m_generatedBefore); | 73 visitor->trace(m_generatedBefore); |
| 74 visitor->trace(m_generatedAfter); | 74 visitor->trace(m_generatedAfter); |
| 75 visitor->trace(m_generatedFirstLetter); | 75 visitor->trace(m_generatedFirstLetter); |
| 76 visitor->trace(m_backdrop); | 76 visitor->trace(m_backdrop); |
| 77 NodeRareData::traceAfterDispatch(visitor); | 77 NodeRareData::traceAfterDispatch(visitor); |
| 78 } | 78 } |
| 79 | 79 |
| 80 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele
mentRareData should stay small"); | 80 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "Ele
mentRareData should stay small"); |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |