| 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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 CreateElement = CreateContainer | IsElementFlag, | 745 CreateElement = CreateContainer | IsElementFlag, |
| 746 CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | IsInShadow
TreeFlag, | 746 CreateShadowRoot = CreateContainer | IsDocumentFragmentFlag | IsInShadow
TreeFlag, |
| 747 CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag, | 747 CreateDocumentFragment = CreateContainer | IsDocumentFragmentFlag, |
| 748 CreateHTMLElement = CreateElement | IsHTMLFlag, | 748 CreateHTMLElement = CreateElement | IsHTMLFlag, |
| 749 CreateSVGElement = CreateElement | IsSVGFlag, | 749 CreateSVGElement = CreateElement | IsSVGFlag, |
| 750 CreateDocument = CreateContainer | InDocumentFlag, | 750 CreateDocument = CreateContainer | InDocumentFlag, |
| 751 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, | 751 CreateInsertionPoint = CreateHTMLElement | IsInsertionPointFlag, |
| 752 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, | 752 CreateEditingText = CreateText | HasNameOrIsEditingTextFlag, |
| 753 }; | 753 }; |
| 754 | 754 |
| 755 Node(TreeScope* treeScope, ConstructionType type) | 755 Node(TreeScope*, ConstructionType); |
| 756 : m_nodeFlags(type) | |
| 757 , m_parentOrShadowHostNode(nullptr) | |
| 758 , m_treeScope(treeScope) | |
| 759 , m_previous(nullptr) | |
| 760 , m_next(nullptr) | |
| 761 { | |
| 762 ASSERT(m_treeScope || type == CreateDocument || type == CreateShadowRoot
); | |
| 763 ScriptWrappable::init(this); | |
| 764 #if !ENABLE(OILPAN) | |
| 765 if (m_treeScope) | |
| 766 m_treeScope->guardRef(); | |
| 767 #endif | |
| 768 | |
| 769 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | |
| 770 trackForDebugging(); | |
| 771 #endif | |
| 772 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | |
| 773 } | |
| 774 | 756 |
| 775 virtual void didMoveToNewDocument(Document& oldDocument); | 757 virtual void didMoveToNewDocument(Document& oldDocument); |
| 776 | 758 |
| 777 static void reattachWhitespaceSiblings(Text* start); | 759 static void reattachWhitespaceSiblings(Text* start); |
| 778 | 760 |
| 779 #if !ENABLE(OILPAN) | 761 #if !ENABLE(OILPAN) |
| 780 void willBeDeletedFromDocument(); | 762 void willBeDeletedFromDocument(); |
| 781 #endif | 763 #endif |
| 782 | 764 |
| 783 bool hasRareData() const { return getFlag(HasRareDataFlag); } | 765 bool hasRareData() const { return getFlag(HasRareDataFlag); } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 } // namespace WebCore | 914 } // namespace WebCore |
| 933 | 915 |
| 934 #ifndef NDEBUG | 916 #ifndef NDEBUG |
| 935 // Outside the WebCore namespace for ease of invocation from gdb. | 917 // Outside the WebCore namespace for ease of invocation from gdb. |
| 936 void showNode(const WebCore::Node*); | 918 void showNode(const WebCore::Node*); |
| 937 void showTree(const WebCore::Node*); | 919 void showTree(const WebCore::Node*); |
| 938 void showNodePath(const WebCore::Node*); | 920 void showNodePath(const WebCore::Node*); |
| 939 #endif | 921 #endif |
| 940 | 922 |
| 941 #endif | 923 #endif |
| OLD | NEW |