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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 private: | 108 private: |
109 RenderObject* m_renderer; | 109 RenderObject* m_renderer; |
110 }; | 110 }; |
111 | 111 |
112 class Node : public TreeSharedWillBeRefCountedGarbageCollected<Node>, public Eve
ntTarget, public ScriptWrappable { | 112 class Node : public TreeSharedWillBeRefCountedGarbageCollected<Node>, public Eve
ntTarget, public ScriptWrappable { |
113 friend class Document; | 113 friend class Document; |
114 friend class TreeScope; | 114 friend class TreeScope; |
115 friend class TreeScopeAdopter; | 115 friend class TreeScopeAdopter; |
116 | 116 |
117 DEFINE_EVENT_TARGET_REFCOUNTING(TreeSharedWillBeRefCountedGarbageCollected<N
ode>); | 117 DEFINE_EVENT_TARGET_REFCOUNTING(TreeSharedWillBeRefCountedGarbageCollected<N
ode>); |
| 118 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Node); |
118 public: | 119 public: |
119 enum NodeType { | 120 enum NodeType { |
120 ELEMENT_NODE = 1, | 121 ELEMENT_NODE = 1, |
121 ATTRIBUTE_NODE = 2, | 122 ATTRIBUTE_NODE = 2, |
122 TEXT_NODE = 3, | 123 TEXT_NODE = 3, |
123 CDATA_SECTION_NODE = 4, | 124 CDATA_SECTION_NODE = 4, |
124 PROCESSING_INSTRUCTION_NODE = 7, | 125 PROCESSING_INSTRUCTION_NODE = 7, |
125 COMMENT_NODE = 8, | 126 COMMENT_NODE = 8, |
126 DOCUMENT_NODE = 9, | 127 DOCUMENT_NODE = 9, |
127 DOCUMENT_TYPE_NODE = 10, | 128 DOCUMENT_TYPE_NODE = 10, |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 void updateAncestorConnectedSubframeCountForRemoval() const; | 667 void updateAncestorConnectedSubframeCountForRemoval() const; |
667 void updateAncestorConnectedSubframeCountForInsertion() const; | 668 void updateAncestorConnectedSubframeCountForInsertion() const; |
668 | 669 |
669 PassRefPtrWillBeRawPtr<NodeList> getDestinationInsertionPoints(); | 670 PassRefPtrWillBeRawPtr<NodeList> getDestinationInsertionPoints(); |
670 | 671 |
671 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } | 672 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
672 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | 673 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
673 | 674 |
674 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } | 675 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } |
675 | 676 |
676 virtual void trace(Visitor*); | 677 virtual void trace(Visitor*) OVERRIDE; |
677 | 678 |
678 private: | 679 private: |
679 enum NodeFlags { | 680 enum NodeFlags { |
680 HasRareDataFlag = 1, | 681 HasRareDataFlag = 1, |
681 | 682 |
682 // Node type flags. These never change once created. | 683 // Node type flags. These never change once created. |
683 IsTextFlag = 1 << 1, | 684 IsTextFlag = 1 << 1, |
684 IsContainerFlag = 1 << 2, | 685 IsContainerFlag = 1 << 2, |
685 IsElementFlag = 1 << 3, | 686 IsElementFlag = 1 << 3, |
686 IsHTMLFlag = 1 << 4, | 687 IsHTMLFlag = 1 << 4, |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 } // namespace WebCore | 934 } // namespace WebCore |
934 | 935 |
935 #ifndef NDEBUG | 936 #ifndef NDEBUG |
936 // Outside the WebCore namespace for ease of invocation from gdb. | 937 // Outside the WebCore namespace for ease of invocation from gdb. |
937 void showNode(const WebCore::Node*); | 938 void showNode(const WebCore::Node*); |
938 void showTree(const WebCore::Node*); | 939 void showTree(const WebCore::Node*); |
939 void showNodePath(const WebCore::Node*); | 940 void showNodePath(const WebCore::Node*); |
940 #endif | 941 #endif |
941 | 942 |
942 #endif | 943 #endif |
OLD | NEW |