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. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 ChildNeedsStyleInvalidationFlag = 1 << 15, | 835 ChildNeedsStyleInvalidationFlag = 1 << 15, |
836 NeedsStyleInvalidationFlag = 1 << 16, | 836 NeedsStyleInvalidationFlag = 1 << 16, |
837 ChildNeedsDistributionRecalcFlag = 1 << 17, | 837 ChildNeedsDistributionRecalcFlag = 1 << 17, |
838 ChildNeedsStyleRecalcFlag = 1 << 18, | 838 ChildNeedsStyleRecalcFlag = 1 << 18, |
839 StyleChangeMask = | 839 StyleChangeMask = |
840 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1), | 840 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1), |
841 | 841 |
842 CustomElementStateMask = 0x3 << nodeCustomElementShift, | 842 CustomElementStateMask = 0x3 << nodeCustomElementShift, |
843 | 843 |
844 HasNameOrIsEditingTextFlag = 1 << 23, | 844 HasNameOrIsEditingTextFlag = 1 << 23, |
845 HasWeakReferencesFlag = 1 << 24, | 845 HasEventTargetDataFlag = 1 << 24, |
846 HasEventTargetDataFlag = 1 << 25, | |
847 | 846 |
848 V0CustomElementFlag = 1 << 26, | 847 V0CustomElementFlag = 1 << 25, |
849 V0CustomElementUpgradedFlag = 1 << 27, | 848 V0CustomElementUpgradedFlag = 1 << 26, |
850 | 849 |
851 NeedsReattachLayoutTree = 1 << 28, | 850 NeedsReattachLayoutTree = 1 << 27, |
852 ChildNeedsReattachLayoutTree = 1 << 29, | 851 ChildNeedsReattachLayoutTree = 1 << 28, |
853 | 852 |
854 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleChange | 853 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleChange |
855 }; | 854 }; |
856 | 855 |
857 // 1 bit remaining. | 856 // 3 bits remaining. |
858 | 857 |
859 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } | 858 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } |
860 void setFlag(bool f, NodeFlags mask) { | 859 void setFlag(bool f, NodeFlags mask) { |
861 m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); | 860 m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); |
862 } | 861 } |
863 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } | 862 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } |
864 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } | 863 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } |
865 | 864 |
866 protected: | 865 protected: |
867 enum ConstructionType { | 866 enum ConstructionType { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 } // namespace blink | 1031 } // namespace blink |
1033 | 1032 |
1034 #ifndef NDEBUG | 1033 #ifndef NDEBUG |
1035 // Outside the WebCore namespace for ease of invocation from gdb. | 1034 // Outside the WebCore namespace for ease of invocation from gdb. |
1036 void showNode(const blink::Node*); | 1035 void showNode(const blink::Node*); |
1037 void showTree(const blink::Node*); | 1036 void showTree(const blink::Node*); |
1038 void showNodePath(const blink::Node*); | 1037 void showNodePath(const blink::Node*); |
1039 #endif | 1038 #endif |
1040 | 1039 |
1041 #endif // Node_h | 1040 #endif // Node_h |
OLD | NEW |