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

Issue 1384973004: Forward assigning to style on HTMLElement, SVGElement and CSSStyleRule to style.cssText (Closed)

Created:
5 years, 2 months ago by nainar
Modified:
5 years, 2 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-html_chromium.org, blink-reviews-style_chromium.org, Inactive, dglazkov+blink, rwlbuis, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Forward assigning to style on HTMLElement, SVGElement and CSSStyleRule to style.cssText Currently setting element.style doesn't update the inline style of that element. This is inconsistent with CSSOM spec -> https://drafts.csswg.org/cssom/#cssstylerule. This patch forwards style assignment on HTMLElement, SVGElement and CSSStyleRule to style.cssText by changing the relevant idl files. The patch ensures that if the style attribute is set, changed or removed, the declarations must be updated as appropriate. FF supports forwarding assigning to style on HTMLElement and SVGElement but not on CSSStyleRule. IE doesn't support forwarding assignment to style on either of the three. This patch also changes the layout tests in order to reflect the patch. The expectation for checking in an input element's width and height attributes without a loaded image has also been changed to a failing expectation. This is as setting the display to none causes the element and its descendants to not generate boxes hence returning a width of 0. BUG=533691 Committed: https://crrev.com/d1a7b0cbd0a511459f0f6202dfe61e27aa47df46 Cr-Commit-Position: refs/heads/master@{#353235}

Patch Set 1 #

Patch Set 2 : Add expectation files #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Change test expectations #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 4

Patch Set 13 : #

Patch Set 14 : Final patch #

Messages

Total messages: 33 (9 generated)
nainar
Alan, PTAL? Thanks!
5 years, 2 months ago (2015-10-06 03:25:31 UTC) #2
rune
https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt File third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt (right): https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt#newcode1 third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt:1: layer at (0,0) size 800x600 Please use text-based tests ...
5 years, 2 months ago (2015-10-06 08:19:53 UTC) #5
nainar
Hi, PTAL? Thanks! https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt File third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt (right): https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt#newcode1 third_party/WebKit/LayoutTests/platform/linux/fast/css/setting-style-attribute-update-inline-style-expected.txt:1: layer at (0,0) size 800x600 Done. ...
5 years, 2 months ago (2015-10-06 23:52:52 UTC) #6
Timothy Loh
https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp File third_party/WebKit/Source/core/html/forms/ImageInputType.cpp (left): https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp#oldcode200 third_party/WebKit/Source/core/html/forms/ImageInputType.cpp:200: if (!element->layoutObject()) { On 2015/10/06 23:52:52, nainar wrote: > ...
5 years, 2 months ago (2015-10-07 00:03:01 UTC) #7
nainar
On 2015/10/07 at 00:03:01, timloh wrote: > https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp > File third_party/WebKit/Source/core/html/forms/ImageInputType.cpp (left): > > https://codereview.chromium.org/1384973004/diff/20001/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp#oldcode200 ...
5 years, 2 months ago (2015-10-07 00:08:42 UTC) #8
Timothy Loh
On 2015/10/07 00:08:42, nainar wrote: > On 2015/10/07 at 00:03:01, timloh wrote: > > > ...
5 years, 2 months ago (2015-10-07 00:31:33 UTC) #9
nainar
Hi, PTAL? Thanks!
5 years, 2 months ago (2015-10-08 00:59:48 UTC) #10
nainar
Tim, PTAL? Thanks!
5 years, 2 months ago (2015-10-08 02:47:27 UTC) #11
nainar
Hi, PTAL? Thanks!
5 years, 2 months ago (2015-10-08 04:04:35 UTC) #12
Timothy Loh
On 2015/10/08 04:04:35, nainar wrote: > Hi, > > PTAL? > > Thanks! lgtm
5 years, 2 months ago (2015-10-08 05:30:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384973004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384973004/220001
5 years, 2 months ago (2015-10-08 05:37:00 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/123936)
5 years, 2 months ago (2015-10-08 06:53:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384973004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384973004/220001
5 years, 2 months ago (2015-10-08 07:19:33 UTC) #19
rune
https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt File third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt (right): https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt#newcode1 third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt:1: FAIL e.width should be 16. Was 0. Why did ...
5 years, 2 months ago (2015-10-08 07:23:50 UTC) #20
rune
https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt File third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt (right): https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt#newcode1 third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt:1: FAIL e.width should be 16. Was 0. On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 07:28:28 UTC) #21
rune
https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt File third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt (right): https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt#newcode1 third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt:1: FAIL e.width should be 16. Was 0. On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 07:37:42 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/123955)
5 years, 2 months ago (2015-10-08 08:36:04 UTC) #24
nainar
https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt File third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt (right): https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt#newcode1 third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt:1: FAIL e.width should be 16. Was 0. Done.
5 years, 2 months ago (2015-10-08 22:22:43 UTC) #25
rune
lgtm
5 years, 2 months ago (2015-10-08 22:39:44 UTC) #26
Timothy Loh
On 2015/10/08 22:22:43, nainar wrote: > https://codereview.chromium.org/1384973004/diff/220001/third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt > File > third_party/WebKit/LayoutTests/fast/forms/input-width-height-attributes-without-renderer-loaded-image-expected.txt > (right): > > ...
5 years, 2 months ago (2015-10-08 22:44:51 UTC) #27
nainar
Retaining the test expectation as a FAIL, as it works in FF and the expected ...
5 years, 2 months ago (2015-10-09 04:36:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384973004/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384973004/260001
5 years, 2 months ago (2015-10-09 04:37:03 UTC) #31
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 2 months ago (2015-10-09 06:15:09 UTC) #32
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 06:16:15 UTC) #33
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/d1a7b0cbd0a511459f0f6202dfe61e27aa47df46
Cr-Commit-Position: refs/heads/master@{#353235}

Powered by Google App Engine
This is Rietveld 408576698