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