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

Unified Diff: Source/core/dom/Node.cpp

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index b75c7ab7d4d6c36423499582f175973e544674a9..ceab2f5dbe54281b7904df17cb903a71d38e15bf 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -140,7 +140,6 @@ void Node::dumpStatistics()
size_t elementNodes = 0;
size_t attrNodes = 0;
size_t textNodes = 0;
- size_t cdataNodes = 0;
size_t commentNodes = 0;
size_t piNodes = 0;
size_t documentNodes = 0;
@@ -189,10 +188,6 @@ void Node::dumpStatistics()
++textNodes;
break;
}
- case CDATA_SECTION_NODE: {
- ++cdataNodes;
- break;
- }
case COMMENT_NODE: {
++commentNodes;
break;
@@ -226,7 +221,6 @@ void Node::dumpStatistics()
printf(" Number of Element nodes: %zu\n", elementNodes);
printf(" Number of Attribute nodes: %zu\n", attrNodes);
printf(" Number of Text nodes: %zu\n", textNodes);
- printf(" Number of CDATASection nodes: %zu\n", cdataNodes);
printf(" Number of Comment nodes: %zu\n", commentNodes);
printf(" Number of ProcessingInstruction nodes: %zu\n", piNodes);
printf(" Number of Document nodes: %zu\n", documentNodes);
@@ -1359,7 +1353,6 @@ void Node::setTextContent(const String& text)
{
switch (nodeType()) {
case TEXT_NODE:
- case CDATA_SECTION_NODE:
case COMMENT_NODE:
case PROCESSING_INSTRUCTION_NODE:
setNodeValue(text);
@@ -2378,7 +2371,6 @@ unsigned Node::lengthOfContents() const
// This switch statement must be consistent with that of Range::processContentsBetweenOffsets.
switch (nodeType()) {
case Node::TEXT_NODE:
- case Node::CDATA_SECTION_NODE:
case Node::COMMENT_NODE:
return toCharacterData(this)->length();
case Node::PROCESSING_INSTRUCTION_NODE:
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698