Changeset 187130 in webkit
- Timestamp:
- Jul 21, 2015, 3:34:27 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
editing/cocoa/EditorCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r187128 r187130 1 2015-07-21 Jon Honeycutt <jhoneycutt@apple.com> 2 3 [iOS] Keyboard bold/italic/underline keys don't highlight after being 4 tapped to style a selection 5 https://bugs.webkit.org/show_bug.cgi?id=147164 6 <rdar://problem/21630806> 7 8 Reviewed by Ryosuke Niwa. 9 10 * editing/cocoa/EditorCocoa.mm: 11 (WebCore::Editor::styleForSelectionStart): 12 Use adjustedSelectionStartForStyleComputation(), which will ensure that 13 we're at the start of the selected node, not at the end of the node 14 before the selection. 15 1 16 2015-07-21 Tim Horton <timothy_horton@apple.com> 2 17 -
trunk/Source/WebCore/editing/cocoa/EditorCocoa.mm
r186086 r187130 37 37 #import "SoftLinking.h" 38 38 #import "Text.h" 39 #import "htmlediting.h" 39 40 40 41 namespace WebCore { … … 48 49 return nullptr; 49 50 50 Position position = frame->selection().selection().visibleStart().deepEquivalent();51 Position position = adjustedSelectionStartForStyleComputation(frame->selection().selection()); 51 52 if (!position.isCandidate() || position.isNull()) 52 53 return nullptr;
Note:
See TracChangeset
for help on using the changeset viewer.