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

Unified Diff: Source/core/dom/Text.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/Range.cpp ('k') | Source/core/editing/MarkupAccumulator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Text.cpp
diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
index c6a2a9895ec07ce6625614f6c468152ef9bd4c69..91374055b597e1d980b6cf98f9b471daf386dcbb 100644
--- a/Source/core/dom/Text.cpp
+++ b/Source/core/dom/Text.cpp
@@ -136,7 +136,7 @@ static const Text* earliestLogicallyAdjacentTextNode(const Text* t)
{
for (const Node* n = t->previousSibling(); n; n = n->previousSibling()) {
Node::NodeType type = n->nodeType();
- if (type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE) {
+ if (type == Node::TEXT_NODE) {
t = toText(n);
continue;
}
@@ -150,7 +150,7 @@ static const Text* latestLogicallyAdjacentTextNode(const Text* t)
{
for (const Node* n = t->nextSibling(); n; n = n->nextSibling()) {
Node::NodeType type = n->nodeType();
- if (type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE) {
+ if (type == Node::TEXT_NODE) {
t = toText(n);
continue;
}
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/editing/MarkupAccumulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698