Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Issue 602423002: Mixing content editable and non-editable in direction RTL (Closed)

Created:
6 years, 2 months ago by Habib Virji
Modified:
6 years, 2 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Mixing content editable and non-editable in direction RTL 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. R=yosin BUG=409517 TEST=editing/selection/skip-non-editable-rtl.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183843

Patch Set 1 #

Total comments: 8

Patch Set 2 : Added isEnclosingBoxHasLeftToRightDirection in place of directionOfEnclosingBlock #

Total comments: 2

Patch Set 3 : Updated as per codereview comment #

Total comments: 2

Patch Set 4 : Updated as per code review comments #

Total comments: 5

Patch Set 5 : Re-changed back to patch 1 changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
A + LayoutTests/editing/selection/skip-non-editable-rtl.html View 1 chunk +2 lines, -2 lines 0 comments Download
A + LayoutTests/editing/selection/skip-non-editable-rtl-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/VisiblePosition.cpp View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (5 generated)
Habib Virji
Please take a look.
6 years, 2 months ago (2014-09-26 14:23:23 UTC) #1
Habib Virji
@eae: Can you please take a look.
6 years, 2 months ago (2014-09-26 16:38:39 UTC) #2
Habib Virji
@eae: Can you please take a look.
6 years, 2 months ago (2014-09-26 16:38:40 UTC) #3
leviw_travelin_and_unemployed
6 years, 2 months ago (2014-09-26 18:23:52 UTC) #6
yosin_UTC9
It seems text direction is only "LTR" and "RTL"[1]. Is it better to have bool ...
6 years, 2 months ago (2014-09-29 01:29:03 UTC) #7
Habib Virji
Thanks Yosi, few questions though: 1. I agree with your suggestion regarding isEnclosingBoxLeftRight, but can ...
6 years, 2 months ago (2014-09-29 09:37:25 UTC) #8
yosin_UTC9
On 2014/09/29 09:37:25, Habib Virji wrote: > Thanks Yosi, few questions though: > > 1. ...
6 years, 2 months ago (2014-09-29 09:46:47 UTC) #9
Habib Virji
Thanks Yosi, updated as suggested. https://codereview.chromium.org/602423002/diff/1/Source/core/editing/VisiblePosition.cpp File Source/core/editing/VisiblePosition.cpp (right): https://codereview.chromium.org/602423002/diff/1/Source/core/editing/VisiblePosition.cpp#newcode283 Source/core/editing/VisiblePosition.cpp:283: // FIXME: This may ...
6 years, 2 months ago (2014-09-29 11:13:43 UTC) #10
Habib Virji
On 2014/09/29 11:13:43, Habib Virji wrote: > Thanks Yosi, updated as suggested. > > https://codereview.chromium.org/602423002/diff/1/Source/core/editing/VisiblePosition.cpp ...
6 years, 2 months ago (2014-10-01 06:06:45 UTC) #11
yosin
https://codereview.chromium.org/602423002/diff/20001/Source/core/editing/htmlediting.cpp File Source/core/editing/htmlediting.cpp (right): https://codereview.chromium.org/602423002/diff/20001/Source/core/editing/htmlediting.cpp#newcode360 Source/core/editing/htmlediting.cpp:360: return renderer ? (renderer->style()->direction() == LTR) : true; nit: ...
6 years, 2 months ago (2014-10-01 08:00:12 UTC) #13
Habib Virji
Thanks. Updated as suggested. https://codereview.chromium.org/602423002/diff/20001/Source/core/editing/htmlediting.cpp File Source/core/editing/htmlediting.cpp (right): https://codereview.chromium.org/602423002/diff/20001/Source/core/editing/htmlediting.cpp#newcode360 Source/core/editing/htmlediting.cpp:360: return renderer ? (renderer->style()->direction() == ...
6 years, 2 months ago (2014-10-01 15:56:16 UTC) #14
Habib Virji
6 years, 2 months ago (2014-10-03 06:09:31 UTC) #15
Habib Virji
@yosin: can you please take a look if changes are okay?
6 years, 2 months ago (2014-10-05 19:36:21 UTC) #16
Habib Virji
On 2014/10/05 19:36:21, Habib Virji wrote: > @yosin: can you please take a look if ...
6 years, 2 months ago (2014-10-08 05:54:25 UTC) #18
yosin_UTC9
https://codereview.chromium.org/602423002/diff/40001/Source/core/editing/VisibleUnits.cpp File Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/602423002/diff/40001/Source/core/editing/VisibleUnits.cpp#newcode354 Source/core/editing/VisibleUnits.cpp:354: bool blockDirection = isEnclosingBoxHasLeftToRightDirection(visiblePosition.deepEquivalent()); nit: Please rename |blockDirection| to ...
6 years, 2 months ago (2014-10-08 08:32:51 UTC) #19
Habib Virji
Thanks updated as suggested. https://codereview.chromium.org/602423002/diff/40001/Source/core/editing/VisibleUnits.cpp File Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/602423002/diff/40001/Source/core/editing/VisibleUnits.cpp#newcode354 Source/core/editing/VisibleUnits.cpp:354: bool blockDirection = isEnclosingBoxHasLeftToRightDirection(visiblePosition.deepEquivalent()); On ...
6 years, 2 months ago (2014-10-08 08:40:27 UTC) #20
yosin_UTC9
Code changes and tests are fine to me. Please wait RTL experts comment.
6 years, 2 months ago (2014-10-09 00:55:51 UTC) #21
Habib Virji
On 2014/10/09 00:55:51, Yosi_UTC9 wrote: > Code changes and tests are fine to me. > ...
6 years, 2 months ago (2014-10-09 06:11:29 UTC) #22
eae
This is something that levi needs to review.
6 years, 2 months ago (2014-10-13 18:34:53 UTC) #23
leviw_travelin_and_unemployed
Your change to the helper method in htmlediting doesn't make sense. https://codereview.chromium.org/602423002/diff/60001/Source/core/editing/VisiblePosition.cpp File Source/core/editing/VisiblePosition.cpp (right): ...
6 years, 2 months ago (2014-10-14 23:04:40 UTC) #24
yosin_UTC9
https://codereview.chromium.org/602423002/diff/60001/Source/core/editing/htmlediting.cpp File Source/core/editing/htmlediting.cpp (right): https://codereview.chromium.org/602423002/diff/60001/Source/core/editing/htmlediting.cpp#newcode354 Source/core/editing/htmlediting.cpp:354: bool isEnclosingBoxHasLeftToRightDirection(const Position& position) On 2014/10/14 23:04:40, leviw wrote: ...
6 years, 2 months ago (2014-10-15 00:55:22 UTC) #25
leviw_travelin_and_unemployed
On 2014/10/15 at 00:55:22, yosin wrote: > https://codereview.chromium.org/602423002/diff/60001/Source/core/editing/htmlediting.cpp > File Source/core/editing/htmlediting.cpp (right): > > https://codereview.chromium.org/602423002/diff/60001/Source/core/editing/htmlediting.cpp#newcode354 ...
6 years, 2 months ago (2014-10-15 01:05:25 UTC) #26
yosin_UTC9
On 2014/10/15 01:05:25, leviw wrote: > On 2014/10/15 at 00:55:22, yosin wrote: > > > ...
6 years, 2 months ago (2014-10-15 02:05:49 UTC) #27
Habib Virji
Thanks Yosin and Levi. @leviw: Can you please review if the changes are okay. It ...
6 years, 2 months ago (2014-10-16 15:55:09 UTC) #28
leviw_travelin_and_unemployed
LGTM.
6 years, 2 months ago (2014-10-16 21:21:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/602423002/90001
6 years, 2 months ago (2014-10-16 21:21:52 UTC) #31
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 23:34:46 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:90001) as 183843

Powered by Google App Engine
This is Rietveld 408576698