[webkit-changes] [WebKit/WebKit] f61cf2: Incorrect caret movement in some RTL contenteditab...
Ahmad Saleem
noreply at github.com
Tue Jan 3 12:32:19 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f61cf23abe063f69ce6408c47a6454825ce011e8
https://github.com/WebKit/WebKit/commit/f61cf23abe063f69ce6408c47a6454825ce011e8
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2023-01-03 (Tue, 03 Jan 2023)
Changed paths:
A LayoutTests/editing/selection/skip-non-editable-rtl-expected.txt
A LayoutTests/editing/selection/skip-non-editable-rtl.html
M Source/WebCore/editing/VisiblePosition.cpp
Log Message:
-----------
Incorrect caret movement in some RTL contenteditable elements
Incorrect caret movement in some RTL contenteditable elements
https://bugs.webkit.org/show_bug.cgi?id=249905
Reviewed by Ryosuke Niwa.
This patch is to align WebKit with Blink / Chromium and Gecko / Firefox.
Merge - https://src.chromium.org/viewvc/blink?view=revision&revision=183843
Content editable when mixed in direction RTL, it was not moving caret because
editing boundary was not calculated correctly. In RTL scenario, nodes
need to be calculated from after or before for left and right respectively.
Based on the direction of the block calculates appropriate editing boundary.
* Source/WebCore/editing/VisiblePosition.cpp:
(VisiblePosition::left): Remove 'FIXME' and respect direction
(VisiblePosition::right): Remove 'FIXME' and respect direction
* LayoutTests/editing/selection/skip-non-editable-rtl.html: Add Test Case
* LayoutTests/editing/selection/skip-non-editable-rtl-expected.txt: Add Test Case Expectation
Canonical link: https://commits.webkit.org/258398@main
More information about the webkit-changes
mailing list