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

Issue 275563003: Change caret to show language direction (Closed)

Created:
6 years, 7 months ago by h.joshi
Modified:
5 years, 6 months ago
CC:
blink-reviews, eae, leviw_travelin_and_unemployed, behdad, aharon, Roozbeh, jeremy
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Change caret to show language direction BUG=4572

Patch Set 1 #

Total comments: 15

Patch Set 2 : Comment fix #

Total comments: 13

Patch Set 3 : Comment fixes #

Total comments: 10

Patch Set 4 : WIP patch for directional caret #

Messages

Total messages: 17 (0 generated)
h.joshi
PTAL
6 years, 7 months ago (2014-05-08 09:45:57 UTC) #1
Peter Kasting
I'm not a good reviewer, so removing myself. In general, your change has style problems. ...
6 years, 7 months ago (2014-05-08 17:44:03 UTC) #2
eseidel
6 years, 7 months ago (2014-05-10 09:54:39 UTC) #3
eseidel
Do any browsers still have this feature?
6 years, 7 months ago (2014-05-10 09:55:12 UTC) #4
h.joshi
Firefox supports this with "bidi.browser.ui" flag, by defaults is OFF. Its showing the same way ...
6 years, 7 months ago (2014-05-11 14:20:31 UTC) #5
progame
On 2014/05/11 14:20:31, h.joshi wrote: > Firefox supports this with "bidi.browser.ui" flag, by defaults is ...
6 years, 7 months ago (2014-05-12 13:33:11 UTC) #6
jeremy
On 2014/05/12 13:33:11, progame wrote: > On 2014/05/11 14:20:31, h.joshi wrote: > > Firefox supports ...
6 years, 7 months ago (2014-05-13 09:21:06 UTC) #7
h.joshi
We have make this under some flag same as Firefox has done, Erik also suggested ...
6 years, 7 months ago (2014-05-16 06:35:02 UTC) #8
h.joshi
Sorry for the typo, We can make this under some flag same as Firefox has ...
6 years, 7 months ago (2014-05-16 06:41:52 UTC) #9
Inactive
This is missing a layout test. https://codereview.chromium.org/275563003/diff/1/Source/core/editing/Caret.cpp File Source/core/editing/Caret.cpp (right): https://codereview.chromium.org/275563003/diff/1/Source/core/editing/Caret.cpp#newcode193 Source/core/editing/Caret.cpp:193: // as extra ...
6 years, 7 months ago (2014-05-22 14:15:04 UTC) #10
h.joshi
Chris, new patch added with comment fix. PTAL https://codereview.chromium.org/275563003/diff/1/Source/core/editing/Caret.cpp File Source/core/editing/Caret.cpp (right): https://codereview.chromium.org/275563003/diff/1/Source/core/editing/Caret.cpp#newcode193 Source/core/editing/Caret.cpp:193: // ...
6 years, 7 months ago (2014-05-23 13:26:31 UTC) #11
Inactive
A couple more comments. I am not familiar with this area of the code so ...
6 years, 7 months ago (2014-05-23 19:57:00 UTC) #12
h.joshi
Will make suggested changes and upload new patch. https://codereview.chromium.org/275563003/diff/20001/Source/core/editing/Caret.cpp File Source/core/editing/Caret.cpp (right): https://codereview.chromium.org/275563003/diff/20001/Source/core/editing/Caret.cpp#newcode182 Source/core/editing/Caret.cpp:182: void ...
6 years, 7 months ago (2014-05-24 02:18:20 UTC) #13
Inactive
https://codereview.chromium.org/275563003/diff/20001/Source/core/editing/Caret.cpp File Source/core/editing/Caret.cpp (right): https://codereview.chromium.org/275563003/diff/20001/Source/core/editing/Caret.cpp#newcode185 Source/core/editing/Caret.cpp:185: TextDirection containerDirection = toRenderBoxModelObject(caretPainter)->style()->direction(); On 2014/05/24 02:18:20, h.joshi wrote: ...
6 years, 7 months ago (2014-05-24 02:22:30 UTC) #14
h.joshi
@Chris: New patch with suggested changes, pls review
6 years, 7 months ago (2014-05-26 06:37:04 UTC) #15
Inactive
I believe you'll need to add your new tests to TestExpectations so that baseline are ...
6 years, 7 months ago (2014-05-27 13:10:44 UTC) #16
h.joshi
6 years, 7 months ago (2014-05-28 03:02:53 UTC) #17
Will make new patch with suggested changes.
(One WIP patch is shared which is not for review, need to fix my workspace)

https://codereview.chromium.org/275563003/diff/40001/Source/core/editing/Care...
File Source/core/editing/Caret.cpp (right):

https://codereview.chromium.org/275563003/diff/40001/Source/core/editing/Care...
Source/core/editing/Caret.cpp:185: TextDirection containerDirection =
renderBoxModelObject->style()->direction();
Yes, RenderObject will be enough here to get style(), checking the same and will
update patch.

https://codereview.chromium.org/275563003/diff/40001/Source/core/editing/Care...
Source/core/editing/Caret.cpp:202:
updateDirectionPointer(toRenderBoxModelObject(caretPainter), inflatedRect);
Yes, will remove after changing method usage.

https://codereview.chromium.org/275563003/diff/40001/Source/core/editing/Care...
Source/core/editing/Caret.cpp:238:
updateDirectionPointer(toRenderBoxModelObject(caretRenderer(node)),
drawingRect);
Ditto

https://codereview.chromium.org/275563003/diff/40001/Source/core/editing/Care...
Source/core/editing/Caret.cpp:258: TextDirection containerDirection =
toRenderBoxModelObject(renderer)->style()->direction();
Yes, will make changes

https://codereview.chromium.org/275563003/diff/40001/Source/core/editing/Care...
Source/core/editing/Caret.cpp:261: // Drawing different Caret which shows
editing style similar to IE
Will make changes.

Powered by Google App Engine
This is Rietveld 408576698