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

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

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/MessagePort.cpp ('k') | Source/core/dom/Range.h » ('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 321ea3a8751267b3309868c90aa5d2dfc3cde407..076900dd854f41e8a773dcca1b629acc0b3d2c6e 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -578,7 +578,7 @@ void Node::normalize()
if (!text->length()) {
// Care must be taken to get the next node before removing the current node.
node = NodeTraversal::nextPostOrder(node.get());
- text->remove(IGNORE_EXCEPTION_STATE);
+ text->remove(IGNORE_EXCEPTION);
continue;
}
@@ -590,7 +590,7 @@ void Node::normalize()
// Remove empty text nodes.
if (!nextText->length()) {
- nextText->remove(IGNORE_EXCEPTION_STATE);
+ nextText->remove(IGNORE_EXCEPTION);
continue;
}
@@ -598,7 +598,7 @@ void Node::normalize()
unsigned offset = text->length();
text->appendData(nextText->data());
document()->textNodesMerged(nextText.get(), offset);
- nextText->remove(IGNORE_EXCEPTION_STATE);
+ nextText->remove(IGNORE_EXCEPTION);
}
node = NodeTraversal::nextPostOrder(node.get());
@@ -2585,7 +2585,7 @@ void Node::removedLastRef()
void Node::textRects(Vector<IntRect>& rects) const
{
RefPtr<Range> range = Range::create(document());
- range->selectNodeContents(const_cast<Node*>(this), IGNORE_EXCEPTION_STATE);
+ range->selectNodeContents(const_cast<Node*>(this), IGNORE_EXCEPTION);
range->textRects(rects);
}
« no previous file with comments | « Source/core/dom/MessagePort.cpp ('k') | Source/core/dom/Range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698