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

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

Issue 64113006: Rename es => exceptionState in core/dom (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/SelectorQuery.cpp ('k') | Source/core/dom/TreeWalker.cpp » ('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 23e98bc6db44bcb73dc010653e6c73f3219ea18d..b37daa848b937a04bb38ed1e7d7cac8f437e8f1f 100644
--- a/Source/core/dom/Text.cpp
+++ b/Source/core/dom/Text.cpp
@@ -97,12 +97,12 @@ PassRefPtr<Node> Text::mergeNextSiblingNodesIfPossible()
return NodeTraversal::nextPostOrder(*this);
}
-PassRefPtr<Text> Text::splitText(unsigned offset, ExceptionState& es)
+PassRefPtr<Text> Text::splitText(unsigned offset, ExceptionState& exceptionState)
{
// IndexSizeError: Raised if the specified offset is negative or greater than
// the number of 16-bit units in data.
if (offset > length()) {
- es.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("splitText", "Text", "The offset " + String::number(offset) + " is larger than the Text node's length."));
+ exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("splitText", "Text", "The offset " + String::number(offset) + " is larger than the Text node's length."));
return 0;
}
@@ -114,8 +114,8 @@ PassRefPtr<Text> Text::splitText(unsigned offset, ExceptionState& es)
didModifyData(oldStr);
if (parentNode())
- parentNode()->insertBefore(newText.get(), nextSibling(), es);
- if (es.hadException())
+ parentNode()->insertBefore(newText.get(), nextSibling(), exceptionState);
+ if (exceptionState.hadException())
return 0;
if (renderer())
« no previous file with comments | « Source/core/dom/SelectorQuery.cpp ('k') | Source/core/dom/TreeWalker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698