| Index: Source/core/editing/ApplyBlockElementCommand.cpp
|
| diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| index 5c4166d7759ee235cff61bcca1960b22b0686c00..9eada42c339a1773857687305478b6a2ddff7403 100644
|
| --- a/Source/core/editing/ApplyBlockElementCommand.cpp
|
| +++ b/Source/core/editing/ApplyBlockElementCommand.cpp
|
| @@ -159,9 +159,9 @@ static bool isNewLineAtPosition(const Position& position)
|
| if (!textNode || !textNode->isTextNode() || offset < 0 || offset >= textNode->maxCharacterOffset())
|
| return false;
|
|
|
| - TrackExceptionState es;
|
| - String textAtPosition = toText(textNode)->substringData(offset, 1, es);
|
| - if (es.hadException())
|
| + TrackExceptionState exceptionState;
|
| + String textAtPosition = toText(textNode)->substringData(offset, 1, exceptionState);
|
| + if (exceptionState.hadException())
|
| return false;
|
|
|
| return textAtPosition[0] == '\n';
|
|
|