Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index cb4a199fc7f5f99d70c0e7fffe32519538416493..fbd877167e84cbf694fee603552e1f3f710b12cc 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -1126,8 +1126,7 @@ void InspectorDOMAgent::performSearch(ErrorString*, const String& whitespaceTrim |
for (; node; node = nextNodeWithShadowDOMInMind(*node, documentElement, includeUserAgentShadowDOM)) { |
switch (node->nodeType()) { |
case Node::TEXT_NODE: |
- case Node::COMMENT_NODE: |
- case Node::CDATA_SECTION_NODE: { |
+ case Node::COMMENT_NODE: { |
String text = node->nodeValue(); |
if (text.findIgnoringCase(whitespaceTrimmedQuery) != kNotFound) |
resultCollector.add(node); |
@@ -1653,7 +1652,6 @@ PassRefPtr<TypeBuilder::DOM::Node> InspectorDOMAgent::buildObjectForNode(Node* n |
switch (node->nodeType()) { |
case Node::TEXT_NODE: |
case Node::COMMENT_NODE: |
- case Node::CDATA_SECTION_NODE: |
nodeValue = node->nodeValue(); |
if (nodeValue.length() > maxTextSize) |
nodeValue = nodeValue.left(maxTextSize) + ellipsisUChar; |