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

Issue 419023007: Autocomplete confused about direction if inline style and inherited dir attribute are mixed (Closed)

Created:
6 years, 4 months ago by Sunil Ratnu
Modified:
6 years ago
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Autocomplete confused about direction if inline style and inherited dir attribute are mixed. Both text box and autocomplete should have same direction i.e when the input box has a direction LTR, then autocomplete popup should also have the same direction and vice-versa. The present logic goes for finding dir attribute on the element and its parent which is the reason for autocomplete's incorrect direction when inline style and inherited dir attribute are mixed. Now, we use renderStyle associated with a particular element to find out the direction (this takes into account both the effect of dir attribute as well as the inline style). BUG=397831 TBR=tkent@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179716

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Incorporated review comments #

Total comments: 5

Patch Set 6 : Incorporated review comments #

Total comments: 2

Patch Set 7 : Return the direction of form controls other than INPUT/TEXTAREA #

Patch Set 8 : Fix Windows Build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M Source/web/WebFormControlElement.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Sunil Ratnu
PTAL. The browser tests form the same are here: https://codereview.chromium.org/446843002/
6 years, 4 months ago (2014-08-06 12:05:50 UTC) #1
ebraminio
On 2014/08/06 12:05:50, Sunil Ratnu wrote: > PTAL. > The browser tests form the same ...
6 years, 4 months ago (2014-08-06 15:14:53 UTC) #2
Sunil Ratnu
On 2014/08/06 15:14:53, ebraminiogmail wrote: > On 2014/08/06 12:05:50, Sunil Ratnu wrote: > > PTAL. ...
6 years, 4 months ago (2014-08-06 15:27:58 UTC) #3
Ilya Sherman
+tkent as reviewer Thanks! I'm not very familiar with this code, but this change looks ...
6 years, 4 months ago (2014-08-06 20:47:36 UTC) #4
Ilya Sherman
On 2014/08/06 20:47:36, Ilya Sherman wrote: > Please also implement a layout test for this ...
6 years, 4 months ago (2014-08-06 20:49:18 UTC) #5
Inactive
Why cannot this be layout tested? It would be much better than relying on a ...
6 years, 4 months ago (2014-08-06 20:49:37 UTC) #6
Inactive
https://codereview.chromium.org/419023007/diff/60001/Source/core/html/HTMLTextFormControlElement.cpp File Source/core/html/HTMLTextFormControlElement.cpp (right): https://codereview.chromium.org/419023007/diff/60001/Source/core/html/HTMLTextFormControlElement.cpp#newcode661 Source/core/html/HTMLTextFormControlElement.cpp:661: if (style) { I cannot say if the change ...
6 years, 4 months ago (2014-08-06 20:51:44 UTC) #7
tkent
HTMLTextFormControlElement::directionForFormData is for |dirname| attribute processing, and the behavior is defined by the standard. http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#the-directionality ...
6 years, 4 months ago (2014-08-07 01:26:56 UTC) #8
Sunil Ratnu
Thank you all for the review and suggestions. I will upload a new patch with ...
6 years, 4 months ago (2014-08-07 03:21:42 UTC) #9
Ilya Sherman
On 2014/08/07 03:21:42, Sunil Ratnu wrote: > Thank you all for the review and suggestions. ...
6 years, 4 months ago (2014-08-07 03:26:10 UTC) #10
tkent
On 2014/08/07 03:26:10, Ilya Sherman wrote: > On 2014/08/07 03:21:42, Sunil Ratnu wrote: > > ...
6 years, 4 months ago (2014-08-07 03:28:52 UTC) #11
Sunil Ratnu
Thanks! I've incorporated review comments. Please take a look. In this patch, I've skipped the ...
6 years, 4 months ago (2014-08-07 05:20:56 UTC) #12
tkent
https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp File Source/core/html/HTMLTextFormControlElement.cpp (right): https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp#newcode734 Source/core/html/HTMLTextFormControlElement.cpp:734: String HTMLTextFormControlElement::directionForAutocomplete() const You don't need to add new ...
6 years, 4 months ago (2014-08-07 05:25:02 UTC) #13
Sunil Ratnu
Incorporated review comments. PTAL. Thanks! https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp File Source/core/html/HTMLTextFormControlElement.cpp (right): https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp#newcode734 Source/core/html/HTMLTextFormControlElement.cpp:734: String HTMLTextFormControlElement::directionForAutocomplete() const On ...
6 years, 4 months ago (2014-08-07 07:06:18 UTC) #14
tkent
https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp File Source/core/html/HTMLTextFormControlElement.cpp (right): https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp#newcode736 Source/core/html/HTMLTextFormControlElement.cpp:736: if (const HTMLElement* element = this) { On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 07:13:46 UTC) #15
Sunil Ratnu
On 2014/08/07 07:13:46, tkent wrote: > https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp > File Source/core/html/HTMLTextFormControlElement.cpp (right): > > https://codereview.chromium.org/419023007/diff/80001/Source/core/html/HTMLTextFormControlElement.cpp#newcode736 > ...
6 years, 4 months ago (2014-08-07 07:29:32 UTC) #16
tkent
lgtm
6 years, 4 months ago (2014-08-07 07:31:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sunil.ratnu@samsung.com/419023007/120001
6 years, 4 months ago (2014-08-07 07:32:30 UTC) #18
Sunil Ratnu
The CQ bit was unchecked by sunil.ratnu@samsung.com
6 years, 4 months ago (2014-08-07 07:46:11 UTC) #19
Sunil Ratnu
On 2014/08/07 07:46:11, Sunil Ratnu wrote: > The CQ bit was unchecked by mailto:sunil.ratnu@samsung.com Hi ...
6 years, 4 months ago (2014-08-07 13:01:04 UTC) #20
Sunil Ratnu
The CQ bit was checked by sunil.ratnu@samsung.com
6 years, 4 months ago (2014-08-07 13:01:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sunil.ratnu@samsung.com/419023007/140001
6 years, 4 months ago (2014-08-07 13:02:16 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_compile_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-07 14:24:32 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 14:31:28 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/15377)
6 years, 4 months ago (2014-08-07 14:31:29 UTC) #25
Sunil Ratnu
The CQ bit was checked by sunil.ratnu@samsung.com
6 years, 4 months ago (2014-08-07 16:07:22 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sunil.ratnu@samsung.com/419023007/140001
6 years, 4 months ago (2014-08-07 16:08:12 UTC) #27
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 16:09:15 UTC) #28
Message was sent while issue was closed.
Change committed as 179716

Powered by Google App Engine
This is Rietveld 408576698