| 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 void updateAncestorConnectedSubframeCountForRemoval() const; | 664 void updateAncestorConnectedSubframeCountForRemoval() const; |
| 665 void updateAncestorConnectedSubframeCountForInsertion() const; | 665 void updateAncestorConnectedSubframeCountForInsertion() const; |
| 666 | 666 |
| 667 PassRefPtr<NodeList> getDestinationInsertionPoints(); | 667 PassRefPtr<NodeList> getDestinationInsertionPoints(); |
| 668 | 668 |
| 669 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } | 669 void setAlreadySpellChecked(bool flag) { setFlag(flag, AlreadySpellCheckedFl
ag); } |
| 670 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } | 670 bool isAlreadySpellChecked() { return getFlag(AlreadySpellCheckedFlag); } |
| 671 | 671 |
| 672 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } | 672 bool isFinishedParsingChildren() const { return getFlag(IsFinishedParsingChi
ldrenFlag); } |
| 673 | 673 |
| 674 virtual void trace(Visitor*) { } | 674 virtual void trace(Visitor*); |
| 675 | 675 |
| 676 private: | 676 private: |
| 677 enum NodeFlags { | 677 enum NodeFlags { |
| 678 IsTextFlag = 1, | 678 IsTextFlag = 1, |
| 679 IsContainerFlag = 1 << 1, | 679 IsContainerFlag = 1 << 1, |
| 680 IsElementFlag = 1 << 2, | 680 IsElementFlag = 1 << 2, |
| 681 IsHTMLFlag = 1 << 3, | 681 IsHTMLFlag = 1 << 3, |
| 682 IsSVGFlag = 1 << 4, | 682 IsSVGFlag = 1 << 4, |
| 683 | 683 |
| 684 ChildNeedsDistributionRecalc = 1 << 5, | 684 ChildNeedsDistributionRecalc = 1 << 5, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 | 746 |
| 747 Node(TreeScope* treeScope, ConstructionType type) | 747 Node(TreeScope* treeScope, ConstructionType type) |
| 748 : m_nodeFlags(type) | 748 : m_nodeFlags(type) |
| 749 , m_parentOrShadowHostNode(0) | 749 , m_parentOrShadowHostNode(0) |
| 750 , m_treeScope(treeScope) | 750 , m_treeScope(treeScope) |
| 751 , m_previous(0) | 751 , m_previous(0) |
| 752 , m_next(0) | 752 , m_next(0) |
| 753 { | 753 { |
| 754 ASSERT(m_treeScope || type == CreateDocument || type == CreateShadowRoot
); | 754 ASSERT(m_treeScope || type == CreateDocument || type == CreateShadowRoot
); |
| 755 ScriptWrappable::init(this); | 755 ScriptWrappable::init(this); |
| 756 #if !ENABLE(OILPAN) |
| 756 if (m_treeScope) | 757 if (m_treeScope) |
| 757 m_treeScope->guardRef(); | 758 m_treeScope->guardRef(); |
| 759 #endif |
| 758 | 760 |
| 759 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 761 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
| 760 trackForDebugging(); | 762 trackForDebugging(); |
| 761 #endif | 763 #endif |
| 762 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 764 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
| 763 } | 765 } |
| 764 | 766 |
| 765 virtual void didMoveToNewDocument(Document& oldDocument); | 767 virtual void didMoveToNewDocument(Document& oldDocument); |
| 766 | 768 |
| 767 static void reattachWhitespaceSiblings(Text* start); | 769 static void reattachWhitespaceSiblings(Text* start); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 | 820 |
| 819 virtual RenderStyle* virtualComputedStyle(PseudoId = NOPSEUDO); | 821 virtual RenderStyle* virtualComputedStyle(PseudoId = NOPSEUDO); |
| 820 | 822 |
| 821 void trackForDebugging(); | 823 void trackForDebugging(); |
| 822 | 824 |
| 823 Vector<OwnPtr<MutationObserverRegistration> >* mutationObserverRegistry(); | 825 Vector<OwnPtr<MutationObserverRegistration> >* mutationObserverRegistry(); |
| 824 HashSet<MutationObserverRegistration*>* transientMutationObserverRegistry(); | 826 HashSet<MutationObserverRegistration*>* transientMutationObserverRegistry(); |
| 825 | 827 |
| 826 mutable uint32_t m_nodeFlags; | 828 mutable uint32_t m_nodeFlags; |
| 827 ContainerNode* m_parentOrShadowHostNode; | 829 ContainerNode* m_parentOrShadowHostNode; |
| 828 TreeScope* m_treeScope; | 830 RawPtrWillBeMember<TreeScope> m_treeScope; |
| 829 Node* m_previous; | 831 Node* m_previous; |
| 830 Node* m_next; | 832 Node* m_next; |
| 831 // When a node has rare data we move the renderer into the rare data. | 833 // When a node has rare data we move the renderer into the rare data. |
| 832 union DataUnion { | 834 union DataUnion { |
| 833 DataUnion() : m_renderer(0) { } | 835 DataUnion() : m_renderer(0) { } |
| 834 RenderObject* m_renderer; | 836 RenderObject* m_renderer; |
| 835 NodeRareDataBase* m_rareData; | 837 NodeRareDataBase* m_rareData; |
| 836 } m_data; | 838 } m_data; |
| 837 }; | 839 }; |
| 838 | 840 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 } // namespace WebCore | 909 } // namespace WebCore |
| 908 | 910 |
| 909 #ifndef NDEBUG | 911 #ifndef NDEBUG |
| 910 // Outside the WebCore namespace for ease of invocation from gdb. | 912 // Outside the WebCore namespace for ease of invocation from gdb. |
| 911 void showNode(const WebCore::Node*); | 913 void showNode(const WebCore::Node*); |
| 912 void showTree(const WebCore::Node*); | 914 void showTree(const WebCore::Node*); |
| 913 void showNodePath(const WebCore::Node*); | 915 void showNodePath(const WebCore::Node*); |
| 914 #endif | 916 #endif |
| 915 | 917 |
| 916 #endif | 918 #endif |
| OLD | NEW |