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

Issue 1653313002: Changed the default value for Empty Dir Attribute (Closed)

Created:
4 years, 10 months ago by chakshu
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changed the default value for Empty Dir Attribute. Empty dir attribute was set to "ltr" and now it is changed to "" so that it can inherit the style from parent. BUG=578262 Committed: https://crrev.com/27dd55c82868e21611193b5f611d5ddbad18d5aa Cr-Commit-Position: refs/heads/master@{#378186}

Patch Set 1 #

Patch Set 2 : Adding more files #

Patch Set 3 : Changes to remove build errors #

Patch Set 4 : Changed the unittests #

Total comments: 3

Patch Set 5 : Made changes as per review comments #

Total comments: 2

Patch Set 6 : Changes as per review comments #

Total comments: 2

Patch Set 7 : Removed the empty string for the style #

Messages

Total messages: 51 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653313002/20001
4 years, 10 months ago (2016-02-02 06:47:35 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/141528)
4 years, 10 months ago (2016-02-02 06:58:43 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653313002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653313002/40001
4 years, 10 months ago (2016-02-08 14:00:24 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 15:08:34 UTC) #10
pals
On 2016/02/08 15:08:34, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 10 months ago (2016-02-09 10:45:34 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653313002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653313002/60001
4 years, 10 months ago (2016-02-09 10:45:35 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-09 12:29:21 UTC) #15
chakshu
https://codereview.chromium.org/1653313002/diff/60001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/1653313002/diff/60001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode237 third_party/WebKit/Source/core/html/HTMLElement.cpp:237: } else { @kojii Can you look at this ...
4 years, 10 months ago (2016-02-11 05:55:37 UTC) #17
kojii
https://codereview.chromium.org/1653313002/diff/60001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/1653313002/diff/60001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode239 third_party/WebKit/Source/core/html/HTMLElement.cpp:239: if (hasTagName(bodyTag)) Probably isHTMLBodyElement() is better? I'm not certain ...
4 years, 10 months ago (2016-02-11 13:51:17 UTC) #18
chakshu
Changed as per review comments https://codereview.chromium.org/1653313002/diff/60001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/1653313002/diff/60001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode239 third_party/WebKit/Source/core/html/HTMLElement.cpp:239: if (hasTagName(bodyTag)) On 2016/02/11 ...
4 years, 10 months ago (2016-02-12 06:04:10 UTC) #19
kojii
+leviw@ non-owner LGTM with nit. https://codereview.chromium.org/1653313002/diff/80001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/1653313002/diff/80001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode238 third_party/WebKit/Source/core/html/HTMLElement.cpp:238: if (isHTMLBodyElement(*this)) nit: better ...
4 years, 10 months ago (2016-02-12 07:13:07 UTC) #21
chakshu
On 2016/02/12 07:13:07, kojii wrote: > +leviw@ > > non-owner LGTM with nit. > > ...
4 years, 10 months ago (2016-02-15 05:48:47 UTC) #22
chakshu
Changed as per the review comments https://codereview.chromium.org/1653313002/diff/80001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/1653313002/diff/80001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode238 third_party/WebKit/Source/core/html/HTMLElement.cpp:238: if (isHTMLBodyElement(*this)) On ...
4 years, 10 months ago (2016-02-15 05:49:25 UTC) #23
kojii
https://codereview.chromium.org/1653313002/diff/100001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/1653313002/diff/100001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode240 third_party/WebKit/Source/core/html/HTMLElement.cpp:240: addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, ""); I should have noticed before, sorry, ...
4 years, 10 months ago (2016-02-16 07:39:01 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653313002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653313002/120001
4 years, 10 months ago (2016-02-18 07:44:30 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-18 08:57:58 UTC) #28
chakshu
Changed as per review comments https://codereview.chromium.org/1653313002/diff/100001/third_party/WebKit/Source/core/html/HTMLElement.cpp File third_party/WebKit/Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/1653313002/diff/100001/third_party/WebKit/Source/core/html/HTMLElement.cpp#newcode240 third_party/WebKit/Source/core/html/HTMLElement.cpp:240: addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, ""); On ...
4 years, 10 months ago (2016-02-18 09:00:58 UTC) #29
kojii
On 2016/02/18 at 09:00:58, chakshu.a wrote: > Changed as per review comments > > https://codereview.chromium.org/1653313002/diff/100001/third_party/WebKit/Source/core/html/HTMLElement.cpp ...
4 years, 10 months ago (2016-02-18 10:16:25 UTC) #30
chakshu
On 2016/02/18 10:16:25, kojii wrote: > On 2016/02/18 at 09:00:58, chakshu.a wrote: > > Changed ...
4 years, 9 months ago (2016-02-27 12:18:58 UTC) #31
chakshu
On 2016/02/18 10:16:25, kojii wrote: > On 2016/02/18 at 09:00:58, chakshu.a wrote: > > Changed ...
4 years, 9 months ago (2016-02-27 12:19:07 UTC) #32
kojii
+eae@ can you have a look? The original fix to this line was by leviw ...
4 years, 9 months ago (2016-02-29 02:19:42 UTC) #34
eae
LGTM
4 years, 9 months ago (2016-02-29 05:21:09 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653313002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653313002/120001
4 years, 9 months ago (2016-02-29 05:21:46 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/181154)
4 years, 9 months ago (2016-02-29 07:38:32 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653313002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653313002/120001
4 years, 9 months ago (2016-02-29 07:57:10 UTC) #41
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-02-29 09:27:42 UTC) #43
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/27dd55c82868e21611193b5f611d5ddbad18d5aa Cr-Commit-Position: refs/heads/master@{#378186}
4 years, 9 months ago (2016-02-29 09:28:58 UTC) #45
tkent
Please do not add a test to LayoutTests/imported manually. Does this work well if nested ...
4 years, 9 months ago (2016-02-29 23:36:38 UTC) #46
kojii
On 2016/02/29 at 23:36:38, tkent wrote: > Please do not add a test to LayoutTests/imported ...
4 years, 9 months ago (2016-03-01 02:21:57 UTC) #47
chakshu
On 2016/03/01 02:21:57, kojii wrote: > On 2016/02/29 at 23:36:38, tkent wrote: > > Please ...
4 years, 9 months ago (2016-03-02 09:56:03 UTC) #48
kojii
On 2016/03/02 at 09:56:03, chakshu.a wrote: > On 2016/03/01 02:21:57, kojii wrote: > > On ...
4 years, 9 months ago (2016-03-02 13:04:27 UTC) #49
chakshu
On 2016/03/02 13:04:27, kojii wrote: > On 2016/03/02 at 09:56:03, chakshu.a wrote: > > On ...
4 years, 9 months ago (2016-03-03 14:50:09 UTC) #50
kojii
4 years, 9 months ago (2016-03-04 04:45:13 UTC) #51
Message was sent while issue was closed.
> Thanks for explaining. The particular test case mentioned is anyway handled
while
> DOM formation. It gets rendered as
> <body dir><div dir=rtl>text</div></body> 

Ah, so the nested body is stripped by the parser, didn't know that. Interesting.
What about if you document.createElement("body"), set dir, and appendChild()
somewhere?

See sample: http://jsbin.com/yexosu/edit?html,output

> Though it fails probably in case
> <html dir=rtl><body dir>text</body></html>
> 
> Is that what you meant to be fixed by checking if it is the root element?
> 
> Yeah, I guess it will be fun playing around with that :)

Yeah, right, that way, you can avoid body being stripped.

Another thing I thought was, when crbug.com/84428 mentions "change body.dir
fails", it's likely that "change document.documentElement.dir" may fail as well.
I meant, when testing special behavior for body, it's also nice to test
document.documentElement as well.

Powered by Google App Engine
This is Rietveld 408576698