Chromium Code Reviews| 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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 758 void notifyMutationObserversNodeWillDetach(); | 758 void notifyMutationObserversNodeWillDetach(); |
| 759 | 759 |
| 760 unsigned connectedSubframeCount() const; | 760 unsigned connectedSubframeCount() const; |
| 761 void incrementConnectedSubframeCount(); | 761 void incrementConnectedSubframeCount(); |
| 762 void decrementConnectedSubframeCount(); | 762 void decrementConnectedSubframeCount(); |
| 763 | 763 |
| 764 StaticNodeList* getDestinationInsertionPoints(); | 764 StaticNodeList* getDestinationInsertionPoints(); |
| 765 HTMLSlotElement* assignedSlot() const; | 765 HTMLSlotElement* assignedSlot() const; |
| 766 HTMLSlotElement* assignedSlotForBinding(); | 766 HTMLSlotElement* assignedSlotForBinding(); |
| 767 | 767 |
| 768 void setAlreadySpellChecked(bool flag) { | |
| 769 setFlag(flag, AlreadySpellCheckedFlag); | |
| 770 } | |
| 771 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | |
| 772 | |
| 773 bool isFinishedParsingChildren() const { | 768 bool isFinishedParsingChildren() const { |
| 774 return getFlag(IsFinishedParsingChildrenFlag); | 769 return getFlag(IsFinishedParsingChildrenFlag); |
| 775 } | 770 } |
| 776 | 771 |
| 777 void checkSlotChange(); | 772 void checkSlotChange(); |
| 778 void checkSlotChangeAfterInserted() { checkSlotChange(); } | 773 void checkSlotChangeAfterInserted() { checkSlotChange(); } |
| 779 void checkSlotChangeBeforeRemoved() { checkSlotChange(); } | 774 void checkSlotChangeBeforeRemoved() { checkSlotChange(); } |
| 780 | 775 |
| 781 DECLARE_VIRTUAL_TRACE(); | 776 DECLARE_VIRTUAL_TRACE(); |
| 782 | 777 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 828 ChildNeedsStyleRecalcFlag = 1 << 18, | 823 ChildNeedsStyleRecalcFlag = 1 << 18, |
| 829 StyleChangeMask = | 824 StyleChangeMask = |
| 830 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1), | 825 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1), |
| 831 | 826 |
| 832 CustomElementStateMask = 0x3 << nodeCustomElementShift, | 827 CustomElementStateMask = 0x3 << nodeCustomElementShift, |
| 833 | 828 |
| 834 HasNameOrIsEditingTextFlag = 1 << 23, | 829 HasNameOrIsEditingTextFlag = 1 << 23, |
| 835 HasWeakReferencesFlag = 1 << 24, | 830 HasWeakReferencesFlag = 1 << 24, |
| 836 V8CollectableDuringMinorGCFlag = 1 << 25, | 831 V8CollectableDuringMinorGCFlag = 1 << 25, |
| 837 HasEventTargetDataFlag = 1 << 26, | 832 HasEventTargetDataFlag = 1 << 26, |
| 838 AlreadySpellCheckedFlag = 1 << 27, | |
| 839 | 833 |
| 840 V0CustomElementFlag = 1 << 28, | 834 V0CustomElementFlag = 1 << 27, |
| 841 V0CustomElementUpgradedFlag = 1 << 29, | 835 V0CustomElementUpgradedFlag = 1 << 28, |
| 842 | 836 |
| 843 NeedsReattachLayoutTree = 1 << 30, | 837 NeedsReattachLayoutTree = 1 << 29, |
| 844 ChildNeedsReattachLayoutTree = 1 << 31, | 838 ChildNeedsReattachLayoutTree = 1 << 30, |
| 845 | 839 |
| 846 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleChange | 840 DefaultNodeFlags = IsFinishedParsingChildrenFlag | NeedsReattachStyleChange |
| 847 }; | 841 }; |
| 848 | 842 |
| 849 // 0 bits remaining. | 843 // 0 bits remaining. |
|
tkent
2016/10/14 09:12:26
Update the comment.
Xiaocheng
2016/10/14 09:49:35
Done.
| |
| 850 | 844 |
| 851 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } | 845 bool getFlag(NodeFlags mask) const { return m_nodeFlags & mask; } |
| 852 void setFlag(bool f, NodeFlags mask) { | 846 void setFlag(bool f, NodeFlags mask) { |
| 853 m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); | 847 m_nodeFlags = (m_nodeFlags & ~mask) | (-(int32_t)f & mask); |
| 854 } | 848 } |
| 855 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } | 849 void setFlag(NodeFlags mask) { m_nodeFlags |= mask; } |
| 856 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } | 850 void clearFlag(NodeFlags mask) { m_nodeFlags &= ~mask; } |
| 857 | 851 |
| 858 protected: | 852 protected: |
| 859 enum ConstructionType { | 853 enum ConstructionType { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1022 } // namespace blink | 1016 } // namespace blink |
| 1023 | 1017 |
| 1024 #ifndef NDEBUG | 1018 #ifndef NDEBUG |
| 1025 // Outside the WebCore namespace for ease of invocation from gdb. | 1019 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1026 void showNode(const blink::Node*); | 1020 void showNode(const blink::Node*); |
| 1027 void showTree(const blink::Node*); | 1021 void showTree(const blink::Node*); |
| 1028 void showNodePath(const blink::Node*); | 1022 void showNodePath(const blink::Node*); |
| 1029 #endif | 1023 #endif |
| 1030 | 1024 |
| 1031 #endif // Node_h | 1025 #endif // Node_h |
| OLD | NEW |