⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187130 in webkit


Ignore:
Timestamp:
Jul 21, 2015, 3:34:27 PM (11 years ago)
Author:
jhoneycutt@apple.com
Message:

[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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r187128 r187130  
     12015-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
    1162015-07-21  Tim Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebCore/editing/cocoa/EditorCocoa.mm

    r186086 r187130  
    3737#import "SoftLinking.h"
    3838#import "Text.h"
     39#import "htmlediting.h"
    3940
    4041namespace WebCore {
     
    4849        return nullptr;
    4950
    50     Position position = frame->selection().selection().visibleStart().deepEquivalent();
     51    Position position = adjustedSelectionStartForStyleComputation(frame->selection().selection());
    5152    if (!position.isCandidate() || position.isNull())
    5253        return nullptr;
Note: See TracChangeset for help on using the changeset viewer.