RESOLVED FIXED 108977
Make baseWritingDirectionForSelectionStart available to all platforms in the Editor class
https://bugs.webkit.org/show_bug.cgi?id=108977
Summary Make baseWritingDirectionForSelectionStart available to all platforms in the ...
Enrica Casucci
Reported 2013-02-05 13:34:45 PST
This method used to be Mac specific because it was returning NSWritingDirection. After http://trac.webkit.org/changeset/141513 the same method now returns WritingDirection which is a WebCore type. We want to move this to Editor.cpp so that we can use it for iOS as well.
Attachments
Patch (4.50 KB, patch)
2013-02-05 14:16 PST, Enrica Casucci
rniwa: review+
Enrica Casucci
Comment 1 2013-02-05 14:16:24 PST
Ryosuke Niwa
Comment 2 2013-02-05 14:21:52 PST
Comment on attachment 186703 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=186703&action=review > Source/WebCore/editing/Editor.cpp:1345 > + result = LeftToRightWritingDirection; > + break; I know you're just moving an existing code but we can just return here. > Source/WebCore/editing/Editor.cpp:1348 > + result = RightToLeftWritingDirection; > + break; Ditto.
Enrica Casucci
Comment 3 2013-02-05 14:34:05 PST
(In reply to comment #2) > (From update of attachment 186703 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=186703&action=review > > > Source/WebCore/editing/Editor.cpp:1345 > > + result = LeftToRightWritingDirection; > > + break; > > I know you're just moving an existing code but we can just return here. > > > Source/WebCore/editing/Editor.cpp:1348 > > + result = RightToLeftWritingDirection; > > + break; > > Ditto. I agree. Thanks for the review!
Enrica Casucci
Comment 4 2013-02-05 14:39:00 PST
Committed revision 141937.
Note You need to log in before you can comment on or make changes to this bug.