| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void setElementFlag(ElementFlags mask, bool value) { | 136 void setElementFlag(ElementFlags mask, bool value) { |
| 137 m_elementFlags = (m_elementFlags & ~mask) | (-(int32_t)value & mask); | 137 m_elementFlags = (m_elementFlags & ~mask) | (-(int32_t)value & mask); |
| 138 } | 138 } |
| 139 void clearElementFlag(ElementFlags mask) { m_elementFlags &= ~mask; } | 139 void clearElementFlag(ElementFlags mask) { m_elementFlags &= ~mask; } |
| 140 | 140 |
| 141 bool hasRestyleFlag(DynamicRestyleFlags mask) const { | 141 bool hasRestyleFlag(DynamicRestyleFlags mask) const { |
| 142 return m_restyleFlags & mask; | 142 return m_restyleFlags & mask; |
| 143 } | 143 } |
| 144 void setRestyleFlag(DynamicRestyleFlags mask) { | 144 void setRestyleFlag(DynamicRestyleFlags mask) { |
| 145 m_restyleFlags |= mask; | 145 m_restyleFlags |= mask; |
| 146 RELEASE_ASSERT(m_restyleFlags); | 146 CHECK(m_restyleFlags); |
| 147 } | 147 } |
| 148 bool hasRestyleFlags() const { return m_restyleFlags; } | 148 bool hasRestyleFlags() const { return m_restyleFlags; } |
| 149 void clearRestyleFlags() { m_restyleFlags = 0; } | 149 void clearRestyleFlags() { m_restyleFlags = 0; } |
| 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 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 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 |