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

Changeset 187304 in webkit


Ignore:
Timestamp:
Jul 24, 2015, 12:02:10 AM (11 years ago)
Author:
Lucas Forschler
Message:

Merged r187130. rdar://problem/21630806

Location:
branches/safari-601.1-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1-branch/Source/WebCore/ChangeLog

    r187302 r187304  
     12015-07-23  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r187130
     4
     5    2015-07-21  Jon Honeycutt  <jhoneycutt@apple.com>
     6
     7            [iOS] Keyboard bold/italic/underline keys don't highlight after being
     8            tapped to style a selection
     9            https://bugs.webkit.org/show_bug.cgi?id=147164
     10            <rdar://problem/21630806>
     11
     12            Reviewed by Ryosuke Niwa.
     13
     14            * editing/cocoa/EditorCocoa.mm:
     15            (WebCore::Editor::styleForSelectionStart):
     16            Use adjustedSelectionStartForStyleComputation(), which will ensure that
     17            we're at the start of the selected node, not at the end of the node
     18            before the selection.
     19
    1202015-07-23  Lucas Forschler  <lforschler@apple.com>
    221
  • branches/safari-601.1-branch/Source/WebCore/editing/cocoa/EditorCocoa.mm

    r186086 r187304  
    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.