| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 { | 74 { |
| 75 if (!m_mutationObserverData) | 75 if (!m_mutationObserverData) |
| 76 m_mutationObserverData = NodeMutationObserverData::create(); | 76 m_mutationObserverData = NodeMutationObserverData::create(); |
| 77 return *m_mutationObserverData; | 77 return *m_mutationObserverData; |
| 78 } | 78 } |
| 79 | 79 |
| 80 unsigned connectedSubframeCount() const { return m_connectedFrameCount; } | 80 unsigned connectedSubframeCount() const { return m_connectedFrameCount; } |
| 81 void incrementConnectedSubframeCount(); | 81 void incrementConnectedSubframeCount(); |
| 82 void decrementConnectedSubframeCount() | 82 void decrementConnectedSubframeCount() |
| 83 { | 83 { |
| 84 ASSERT(m_connectedFrameCount); | 84 DCHECK(m_connectedFrameCount); |
| 85 --m_connectedFrameCount; | 85 --m_connectedFrameCount; |
| 86 } | 86 } |
| 87 | 87 |
| 88 bool hasElementFlag(ElementFlags mask) const { return m_elementFlags & mask;
} | 88 bool hasElementFlag(ElementFlags mask) const { return m_elementFlags & mask;
} |
| 89 void setElementFlag(ElementFlags mask, bool value) { m_elementFlags = (m_ele
mentFlags & ~mask) | (-(int32_t)value & mask); } | 89 void setElementFlag(ElementFlags mask, bool value) { m_elementFlags = (m_ele
mentFlags & ~mask) | (-(int32_t)value & mask); } |
| 90 void clearElementFlag(ElementFlags mask) { m_elementFlags &= ~mask; } | 90 void clearElementFlag(ElementFlags mask) { m_elementFlags &= ~mask; } |
| 91 | 91 |
| 92 bool hasRestyleFlag(DynamicRestyleFlags mask) const { return m_restyleFlags
& mask; } | 92 bool hasRestyleFlag(DynamicRestyleFlags mask) const { return m_restyleFlags
& mask; } |
| 93 void setRestyleFlag(DynamicRestyleFlags mask) { m_restyleFlags |= mask; RELE
ASE_ASSERT(m_restyleFlags); } | 93 void setRestyleFlag(DynamicRestyleFlags mask) { m_restyleFlags |= mask; RELE
ASE_ASSERT(m_restyleFlags); } |
| 94 bool hasRestyleFlags() const { return m_restyleFlags; } | 94 bool hasRestyleFlags() const { return m_restyleFlags; } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 119 unsigned m_connectedFrameCount : ConnectedFrameCountBits; | 119 unsigned m_connectedFrameCount : ConnectedFrameCountBits; |
| 120 unsigned m_elementFlags : NumberOfElementFlags; | 120 unsigned m_elementFlags : NumberOfElementFlags; |
| 121 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; | 121 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; |
| 122 protected: | 122 protected: |
| 123 unsigned m_isElementRareData : 1; | 123 unsigned m_isElementRareData : 1; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace blink | 126 } // namespace blink |
| 127 | 127 |
| 128 #endif // NodeRareData_h | 128 #endif // NodeRareData_h |
| OLD | NEW |