Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Side by Side Diff: Source/core/dom/Node.h

Issue 739433003: Remove CDATASection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 class GC_PLUGIN_IGNORE("crbug.com/443854") Node : NODE_BASE_CLASSES { 128 class GC_PLUGIN_IGNORE("crbug.com/443854") Node : NODE_BASE_CLASSES {
129 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(TreeShared<Node>); 129 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(TreeShared<Node>);
130 DEFINE_WRAPPERTYPEINFO(); 130 DEFINE_WRAPPERTYPEINFO();
131 friend class TreeScope; 131 friend class TreeScope;
132 friend class TreeScopeAdopter; 132 friend class TreeScopeAdopter;
133 public: 133 public:
134 enum NodeType { 134 enum NodeType {
135 ELEMENT_NODE = 1, 135 ELEMENT_NODE = 1,
136 ATTRIBUTE_NODE = 2, 136 ATTRIBUTE_NODE = 2,
137 TEXT_NODE = 3, 137 TEXT_NODE = 3,
138 CDATA_SECTION_NODE = 4,
139 PROCESSING_INSTRUCTION_NODE = 7, 138 PROCESSING_INSTRUCTION_NODE = 7,
140 COMMENT_NODE = 8, 139 COMMENT_NODE = 8,
141 DOCUMENT_NODE = 9, 140 DOCUMENT_NODE = 9,
142 DOCUMENT_TYPE_NODE = 10, 141 DOCUMENT_TYPE_NODE = 10,
143 DOCUMENT_FRAGMENT_NODE = 11, 142 DOCUMENT_FRAGMENT_NODE = 11,
144 }; 143 };
145 144
146 // Entity, EntityReference, Notation, and XPathNamespace nodes are impossibl e to create in Blink. 145 // Entity, EntityReference, Notation, and XPathNamespace nodes are impossibl e to create in Blink.
147 // But for compatibility reasons we want these enum values exist in JS, and this enum makes the bindings 146 // But for compatibility reasons we want these enum values exist in JS, and this enum makes the bindings
148 // generation not complain about ENTITY_REFERENCE_NODE being missing from th e implementation 147 // generation not complain about ENTITY_REFERENCE_NODE being missing from th e implementation
149 // while not requiring all switch(NodeType) blocks to include this deprecate d constant. 148 // while not requiring all switch(NodeType) blocks to include this deprecate d constant.
150 enum DeprecatedNodeType { 149 enum DeprecatedNodeType {
150 CDATA_SECTION_NODE = 4,
151 ENTITY_REFERENCE_NODE = 5, 151 ENTITY_REFERENCE_NODE = 5,
152 ENTITY_NODE = 6, 152 ENTITY_NODE = 6,
153 NOTATION_NODE = 12, 153 NOTATION_NODE = 12,
154 XPATH_NAMESPACE_NODE = 13, 154 XPATH_NAMESPACE_NODE = 13,
155 }; 155 };
156 156
157 enum DocumentPosition { 157 enum DocumentPosition {
158 DOCUMENT_POSITION_EQUIVALENT = 0x00, 158 DOCUMENT_POSITION_EQUIVALENT = 0x00,
159 DOCUMENT_POSITION_DISCONNECTED = 0x01, 159 DOCUMENT_POSITION_DISCONNECTED = 0x01,
160 DOCUMENT_POSITION_PRECEDING = 0x02, 160 DOCUMENT_POSITION_PRECEDING = 0x02,
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 } // namespace blink 903 } // namespace blink
904 904
905 #ifndef NDEBUG 905 #ifndef NDEBUG
906 // Outside the WebCore namespace for ease of invocation from gdb. 906 // Outside the WebCore namespace for ease of invocation from gdb.
907 void showNode(const blink::Node*); 907 void showNode(const blink::Node*);
908 void showTree(const blink::Node*); 908 void showTree(const blink::Node*);
909 void showNodePath(const blink::Node*); 909 void showNodePath(const blink::Node*);
910 #endif 910 #endif
911 911
912 #endif // Node_h 912 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698