| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 693 |
| 694 HasNameOrIsEditingTextFlag = 1 << 23, | 694 HasNameOrIsEditingTextFlag = 1 << 23, |
| 695 HasWeakReferencesFlag = 1 << 24, | 695 HasWeakReferencesFlag = 1 << 24, |
| 696 V8CollectableDuringMinorGCFlag = 1 << 25, | 696 V8CollectableDuringMinorGCFlag = 1 << 25, |
| 697 HasEventTargetDataFlag = 1 << 26, | 697 HasEventTargetDataFlag = 1 << 26, |
| 698 AlreadySpellCheckedFlag = 1 << 27, | 698 AlreadySpellCheckedFlag = 1 << 27, |
| 699 | 699 |
| 700 V0CustomElementFlag = 1 << 28, | 700 V0CustomElementFlag = 1 << 28, |
| 701 V0CustomElementUpgradedFlag = 1 << 29, | 701 V0CustomElementUpgradedFlag = 1 << 29, |
| 702 | 702 |
| 703 NeedsReattachLayoutTree = 1 << 30, |
| 704 ChildNeedsReattachLayoutTree = 1 << 31, |
| 705 |
| 703 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleCha
nge | 706 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleCha
nge |
| 704 }; | 707 }; |
| 705 | 708 |
| 706 // 3 bits remaining. | 709 // 0 bits remaining. |
| 707 | 710 |
| 708 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } | 711 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } |
| 709 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) |
(-(int32_t)f & mask); } | 712 void setFlag(bool f, NodeFlags mask) { m_nodeFlags = (m_nodeFlags & ~mask) |
(-(int32_t)f & mask); } |
| 710 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } | 713 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } |
| 711 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } | 714 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } |
| 712 | 715 |
| 713 protected: | 716 protected: |
| 714 enum ConstructionType { | 717 enum ConstructionType { |
| 715 CreateOther = DefaultNodeFlags, | 718 CreateOther = DefaultNodeFlags, |
| 716 CreateText = DefaultNodeFlags | IsTextFlag, | 719 CreateText = DefaultNodeFlags | IsTextFlag, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 } // namespace blink | 877 } // namespace blink |
| 875 | 878 |
| 876 #ifndef NDEBUG | 879 #ifndef NDEBUG |
| 877 // Outside the WebCore namespace for ease of invocation from gdb. | 880 // Outside the WebCore namespace for ease of invocation from gdb. |
| 878 void showNode(const blink::Node*); | 881 void showNode(const blink::Node*); |
| 879 void showTree(const blink::Node*); | 882 void showTree(const blink::Node*); |
| 880 void showNodePath(const blink::Node*); | 883 void showNodePath(const blink::Node*); |
| 881 #endif | 884 #endif |
| 882 | 885 |
| 883 #endif // Node_h | 886 #endif // Node_h |
| OLD | NEW |