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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 #else | 122 #else |
123 // TreeShared should be the last to pack TreeShared::m_refCount and | 123 // TreeShared should be the last to pack TreeShared::m_refCount and |
124 // Node::m_nodeFlags on 64bit platforms. | 124 // Node::m_nodeFlags on 64bit platforms. |
125 #define NODE_BASE_CLASSES public EventTarget, public TreeShared<Node> | 125 #define NODE_BASE_CLASSES public EventTarget, public TreeShared<Node> |
126 #endif | 126 #endif |
127 | 127 |
128 class Node : NODE_BASE_CLASSES { | 128 class Node : NODE_BASE_CLASSES { |
129 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(TreeShared<Node>); | 129 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(TreeShared<Node>); |
130 DEFINE_WRAPPERTYPEINFO(); | 130 DEFINE_WRAPPERTYPEINFO(); |
131 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Node); | 131 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Node); |
132 friend class Document; | |
133 friend class TreeScope; | 132 friend class TreeScope; |
134 friend class TreeScopeAdopter; | 133 friend class TreeScopeAdopter; |
135 public: | 134 public: |
136 enum NodeType { | 135 enum NodeType { |
137 ELEMENT_NODE = 1, | 136 ELEMENT_NODE = 1, |
138 ATTRIBUTE_NODE = 2, | 137 ATTRIBUTE_NODE = 2, |
139 TEXT_NODE = 3, | 138 TEXT_NODE = 3, |
140 CDATA_SECTION_NODE = 4, | 139 CDATA_SECTION_NODE = 4, |
141 PROCESSING_INSTRUCTION_NODE = 7, | 140 PROCESSING_INSTRUCTION_NODE = 7, |
142 COMMENT_NODE = 8, | 141 COMMENT_NODE = 8, |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 bool isTreeScopeInitialized() const { return m_treeScope; } | 774 bool isTreeScopeInitialized() const { return m_treeScope; } |
776 | 775 |
777 void markAncestorsWithChildNeedsStyleRecalc(); | 776 void markAncestorsWithChildNeedsStyleRecalc(); |
778 | 777 |
779 void setIsFinishedParsingChildren(bool value) { setFlag(value, IsFinishedPar
singChildrenFlag); } | 778 void setIsFinishedParsingChildren(bool value) { setFlag(value, IsFinishedPar
singChildrenFlag); } |
780 | 779 |
781 private: | 780 private: |
782 friend class TreeShared<Node>; | 781 friend class TreeShared<Node>; |
783 friend class WeakNodeMap; | 782 friend class WeakNodeMap; |
784 | 783 |
785 unsigned styledSubtreeSize() const; | |
786 | |
787 #if !ENABLE(OILPAN) | 784 #if !ENABLE(OILPAN) |
788 void removedLastRef(); | 785 void removedLastRef(); |
789 #endif | 786 #endif |
790 bool hasTreeSharedParent() const { return !!parentOrShadowHostNode(); } | 787 bool hasTreeSharedParent() const { return !!parentOrShadowHostNode(); } |
791 | 788 |
792 enum EditableLevel { Editable, RichlyEditable }; | 789 enum EditableLevel { Editable, RichlyEditable }; |
793 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI
sAlwaysNonEditable) const; | 790 bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllI
sAlwaysNonEditable) const; |
794 bool isEditableToAccessibility(EditableLevel) const; | 791 bool isEditableToAccessibility(EditableLevel) const; |
795 | 792 |
796 bool isUserActionElementActive() const; | 793 bool isUserActionElementActive() const; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 } // namespace blink | 896 } // namespace blink |
900 | 897 |
901 #ifndef NDEBUG | 898 #ifndef NDEBUG |
902 // Outside the WebCore namespace for ease of invocation from gdb. | 899 // Outside the WebCore namespace for ease of invocation from gdb. |
903 void showNode(const blink::Node*); | 900 void showNode(const blink::Node*); |
904 void showTree(const blink::Node*); | 901 void showTree(const blink::Node*); |
905 void showNodePath(const blink::Node*); | 902 void showNodePath(const blink::Node*); |
906 #endif | 903 #endif |
907 | 904 |
908 #endif // Node_h | 905 #endif // Node_h |
OLD | NEW |