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

Unified Diff: third_party/WebKit/Source/core/dom/Text.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 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
Index: third_party/WebKit/Source/core/dom/Text.cpp
diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
index eec5850eb42536ed5d4a44165bb7e47ef321e716..e6bae08f95ff59a2a659932b9eecba76cda099b8 100644
--- a/third_party/WebKit/Source/core/dom/Text.cpp
+++ b/third_party/WebKit/Source/core/dom/Text.cpp
@@ -58,7 +58,7 @@ Node* Text::mergeNextSiblingNodesIfPossible() {
if (!length()) {
// Care must be taken to get the next node before removing the current node.
Node* nextNode = NodeTraversal::nextPostOrder(*this);
- remove(IGNORE_EXCEPTION);
+ remove(IGNORE_EXCEPTION_FOR_TESTING);
return nextNode;
}
@@ -71,7 +71,7 @@ Node* Text::mergeNextSiblingNodesIfPossible() {
// Remove empty text nodes.
if (!nextText->length()) {
- nextText->remove(IGNORE_EXCEPTION);
+ nextText->remove(IGNORE_EXCEPTION_FOR_TESTING);
continue;
}
@@ -94,7 +94,7 @@ Node* Text::mergeNextSiblingNodesIfPossible() {
document().incDOMTreeVersion();
didModifyData(oldTextData, CharacterData::UpdateFromNonParser);
- nextText->remove(IGNORE_EXCEPTION);
+ nextText->remove(IGNORE_EXCEPTION_FOR_TESTING);
}
return NodeTraversal::nextPostOrder(*this);
@@ -202,7 +202,7 @@ Text* Text::replaceWholeText(const String& newText) {
n && n != this && n->isTextNode() && n->parentNode() == parent;) {
Node* nodeToRemove = n;
n = nodeToRemove->nextSibling();
- parent->removeChild(nodeToRemove, IGNORE_EXCEPTION);
+ parent->removeChild(nodeToRemove, IGNORE_EXCEPTION_FOR_TESTING);
}
if (this != endText) {
@@ -211,13 +211,13 @@ Text* Text::replaceWholeText(const String& newText) {
n->parentNode() == parent;) {
Node* nodeToRemove = n;
n = nodeToRemove->nextSibling();
- parent->removeChild(nodeToRemove, IGNORE_EXCEPTION);
+ parent->removeChild(nodeToRemove, IGNORE_EXCEPTION_FOR_TESTING);
}
}
if (newText.isEmpty()) {
if (parent && parentNode() == parent)
- parent->removeChild(this, IGNORE_EXCEPTION);
+ parent->removeChild(this, IGNORE_EXCEPTION_FOR_TESTING);
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Range.cpp ('k') | third_party/WebKit/Source/core/editing/EphemeralRangeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698