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