| 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 25 matching lines...) Expand all Loading... |
| 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[9]; | 46 void* pointers[10]; |
| 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 |
| OLD | NEW |