| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> | 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void removeRegistration(MutationObserverRegistration* registration) { | 67 void removeRegistration(MutationObserverRegistration* registration) { |
| 68 DCHECK(m_registry.contains(registration)); | 68 DCHECK(m_registry.contains(registration)); |
| 69 m_registry.remove(m_registry.find(registration)); | 69 m_registry.remove(m_registry.find(registration)); |
| 70 } | 70 } |
| 71 | 71 |
| 72 DEFINE_INLINE_TRACE() { | 72 DEFINE_INLINE_TRACE() { |
| 73 visitor->trace(m_registry); | 73 visitor->trace(m_registry); |
| 74 visitor->trace(m_transientRegistry); | 74 visitor->trace(m_transientRegistry); |
| 75 } | 75 } |
| 76 | 76 |
| 77 DECLARE_TRACE_WRAPPERS() { | 77 DECLARE_TRACE_WRAPPERS_WITHOUT_BASE() { |
| 78 for (auto registration : m_registry) { | 78 for (auto registration : m_registry) { |
| 79 visitor->traceWrappers(registration); | 79 visitor->traceWrappers(registration); |
| 80 } | 80 } |
| 81 for (auto registration : m_transientRegistry) { | 81 for (auto registration : m_transientRegistry) { |
| 82 visitor->traceWrappers(registration); | 82 visitor->traceWrappers(registration); |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 NodeMutationObserverData() {} | 87 NodeMutationObserverData() {} |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 enum { | 151 enum { |
| 152 ConnectedFrameCountBits = 10, // Must fit Page::maxNumberOfFrames. | 152 ConnectedFrameCountBits = 10, // Must fit Page::maxNumberOfFrames. |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 DECLARE_TRACE(); | 155 DECLARE_TRACE(); |
| 156 | 156 |
| 157 DECLARE_TRACE_AFTER_DISPATCH(); | 157 DECLARE_TRACE_AFTER_DISPATCH(); |
| 158 void finalizeGarbageCollectedObject(); | 158 void finalizeGarbageCollectedObject(); |
| 159 | 159 |
| 160 DECLARE_TRACE_WRAPPERS(); | 160 DECLARE_TRACE_WRAPPERS_WITHOUT_BASE(); |
| 161 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); | 161 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); |
| 162 | 162 |
| 163 protected: | 163 protected: |
| 164 explicit NodeRareData(LayoutObject* layoutObject) | 164 explicit NodeRareData(LayoutObject* layoutObject) |
| 165 : NodeRareDataBase(layoutObject), | 165 : NodeRareDataBase(layoutObject), |
| 166 m_connectedFrameCount(0), | 166 m_connectedFrameCount(0), |
| 167 m_elementFlags(0), | 167 m_elementFlags(0), |
| 168 m_restyleFlags(0), | 168 m_restyleFlags(0), |
| 169 m_isElementRareData(false) {} | 169 m_isElementRareData(false) {} |
| 170 | 170 |
| 171 private: | 171 private: |
| 172 Member<NodeListsNodeData> m_nodeLists; | 172 Member<NodeListsNodeData> m_nodeLists; |
| 173 Member<NodeMutationObserverData> m_mutationObserverData; | 173 Member<NodeMutationObserverData> m_mutationObserverData; |
| 174 | 174 |
| 175 unsigned m_connectedFrameCount : ConnectedFrameCountBits; | 175 unsigned m_connectedFrameCount : ConnectedFrameCountBits; |
| 176 unsigned m_elementFlags : NumberOfElementFlags; | 176 unsigned m_elementFlags : NumberOfElementFlags; |
| 177 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; | 177 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; |
| 178 | 178 |
| 179 protected: | 179 protected: |
| 180 unsigned m_isElementRareData : 1; | 180 unsigned m_isElementRareData : 1; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // namespace blink | 183 } // namespace blink |
| 184 | 184 |
| 185 #endif // NodeRareData_h | 185 #endif // NodeRareData_h |
| OLD | NEW |