| Index: Source/core/dom/Text.cpp
|
| diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
|
| index 56b7314d0d73e36e21da40e59aea3d503b2598f3..abd733163afae20c49390c3c2d3b14ccffcd1a2f 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())
|
|
|