| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void addRegistration(MutationObserverRegistration* registration) { | 62 void addRegistration(MutationObserverRegistration* registration) { |
| 63 m_registry.push_back( | 63 m_registry.push_back( |
| 64 TraceWrapperMember<MutationObserverRegistration>(this, registration)); | 64 TraceWrapperMember<MutationObserverRegistration>(this, registration)); |
| 65 } | 65 } |
| 66 | 66 |
| 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 void markAndDispatchTraceWrappers(const WrapperVisitor* visitor) const { |
| 73 traceWrappers(visitor); |
| 74 } |
| 75 |
| 72 DEFINE_INLINE_TRACE() { | 76 DEFINE_INLINE_TRACE() { |
| 73 visitor->trace(m_registry); | 77 visitor->trace(m_registry); |
| 74 visitor->trace(m_transientRegistry); | 78 visitor->trace(m_transientRegistry); |
| 75 } | 79 } |
| 76 | 80 |
| 77 DECLARE_TRACE_WRAPPERS() { | 81 DECLARE_TRACE_WRAPPERS() { |
| 78 for (auto registration : m_registry) { | 82 for (auto registration : m_registry) { |
| 79 visitor->traceWrappers(registration); | 83 visitor->traceWrappers(registration); |
| 80 } | 84 } |
| 81 for (auto registration : m_transientRegistry) { | 85 for (auto registration : m_transientRegistry) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 m_restyleFlags |= mask; | 149 m_restyleFlags |= mask; |
| 146 CHECK(m_restyleFlags); | 150 CHECK(m_restyleFlags); |
| 147 } | 151 } |
| 148 bool hasRestyleFlags() const { return m_restyleFlags; } | 152 bool hasRestyleFlags() const { return m_restyleFlags; } |
| 149 void clearRestyleFlags() { m_restyleFlags = 0; } | 153 void clearRestyleFlags() { m_restyleFlags = 0; } |
| 150 | 154 |
| 151 enum { | 155 enum { |
| 152 ConnectedFrameCountBits = 10, // Must fit Page::maxNumberOfFrames. | 156 ConnectedFrameCountBits = 10, // Must fit Page::maxNumberOfFrames. |
| 153 }; | 157 }; |
| 154 | 158 |
| 159 void markAndDispatchTraceWrappers(const WrapperVisitor* visitor) const { |
| 160 traceWrappers(visitor); |
| 161 } |
| 162 |
| 155 DECLARE_TRACE(); | 163 DECLARE_TRACE(); |
| 156 | 164 |
| 157 DECLARE_TRACE_AFTER_DISPATCH(); | 165 DECLARE_TRACE_AFTER_DISPATCH(); |
| 158 void finalizeGarbageCollectedObject(); | 166 void finalizeGarbageCollectedObject(); |
| 159 | 167 |
| 160 DECLARE_TRACE_WRAPPERS(); | 168 DECLARE_TRACE_WRAPPERS(); |
| 161 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); | 169 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); |
| 162 | 170 |
| 163 protected: | 171 protected: |
| 164 explicit NodeRareData(LayoutObject* layoutObject) | 172 explicit NodeRareData(LayoutObject* layoutObject) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 176 unsigned m_elementFlags : NumberOfElementFlags; | 184 unsigned m_elementFlags : NumberOfElementFlags; |
| 177 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; | 185 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; |
| 178 | 186 |
| 179 protected: | 187 protected: |
| 180 unsigned m_isElementRareData : 1; | 188 unsigned m_isElementRareData : 1; |
| 181 }; | 189 }; |
| 182 | 190 |
| 183 } // namespace blink | 191 } // namespace blink |
| 184 | 192 |
| 185 #endif // NodeRareData_h | 193 #endif // NodeRareData_h |
| OLD | NEW |