[iOS] Keyboard bold/italic/underline keys don't highlight after being
authorjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jul 2015 22:34:27 +0000 (22:34 +0000)
committerjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jul 2015 22:34:27 +0000 (22:34 +0000)
commit32e845aa1336b642bd1590ea9f07c8a19be03f74
treecf4188ec5b04692b224c8882d14b5648a3574555
parente96584e813839b7ca4d82b3a1b204f9b1d12553b
[iOS] Keyboard bold/italic/underline keys don't highlight after being
tapped to style a selection
https://bugs.webkit.org/show_bug.cgi?id=147164
<rdar://problem/21630806>

Reviewed by Ryosuke Niwa.

* editing/cocoa/EditorCocoa.mm:
(WebCore::Editor::styleForSelectionStart):
Use adjustedSelectionStartForStyleComputation(), which will ensure that
we're at the start of the selected node, not at the end of the node
before the selection.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/editing/cocoa/EditorCocoa.mm