Cleanup local variables in Editor::markAndReplaceFor
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Apr 2013 01:27:26 +0000 (01:27 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Apr 2013 01:27:26 +0000 (01:27 +0000)
commitf0274568f05b3d96200c84a3ca0f46cd0d9a2145
tree63e32a37375f6759ae372cc3979bf8abde5e54c7
parent058d719d970fb813d5263e922dfaa8c6c206c490
Cleanup local variables in Editor::markAndReplaceFor
https://bugs.webkit.org/show_bug.cgi?id=114383

Reviewed by Enrica Casucci.

Added resultEndLocation, which is the sum of resultLocation and resultLength.

Also replaced ambiguousBoundaryOffset by useAmbiguousBoundaryOffset since the ambiguous offset is always
selectionOffset -1 to avoid the extra house keeping and obnoxious -1 check.

* editing/Editor.cpp:
(WebCore::Editor::markAndReplaceFor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/editing/Editor.cpp