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

Issue 2292013002: Notify LayoutImage that intrinsic dimensions changed when sizes changes (Closed)

Created:
4 years, 3 months ago by Yoav Weiss
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Notify LayoutImage that intrinsic dimensions changed when sizes changes When the sizes attribute changes, that has the potential of modifying the image's intrinsic dimensions. However, the LayoutImage object was not notified of that explicitly. While the intrinsic dimensions were changed when a new resource was downloaded as a result of the sizes attribute change, that wasn't the case when such the resource was not changed. This CL fixes that, by explicitly notifying the LayoutImage of the change. BUG=639845 Committed: https://crrev.com/caccabc07cfb56d982d3933a5b938f190ee34ec4 Cr-Commit-Position: refs/heads/master@{#415369}

Patch Set 1 #

Total comments: 2

Patch Set 2 : test improvements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/sizes-changed-intrinsic-size-update.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 19 (12 generated)
Yoav Weiss
Hey Mike, Care to take a look at this patch? The change is not huge, ...
4 years, 3 months ago (2016-08-30 09:22:46 UTC) #4
Stephen Chennney
Thanks for the quick fix. Code looks fine, but I have a question about the ...
4 years, 3 months ago (2016-08-30 13:32:24 UTC) #8
Yoav Weiss
https://codereview.chromium.org/2292013002/diff/1/third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/sizes-changed-intrinsic-size-update.html File third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/sizes-changed-intrinsic-size-update.html (right): https://codereview.chromium.org/2292013002/diff/1/third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/sizes-changed-intrinsic-size-update.html#newcode15 third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/sizes-changed-intrinsic-size-update.html:15: bla.onload = t.step_func(function() { On 2016/08/30 13:32:24, Stephen Chennney ...
4 years, 3 months ago (2016-08-30 15:02:12 UTC) #9
Stephen Chennney
On 2016/08/30 15:02:12, Yoav Weiss wrote: > https://codereview.chromium.org/2292013002/diff/1/third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/sizes-changed-intrinsic-size-update.html > File > third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/sizes-changed-intrinsic-size-update.html > (right): > ...
4 years, 3 months ago (2016-08-30 15:18:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2292013002/20001
4 years, 3 months ago (2016-08-30 18:38:34 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-30 18:44:38 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 18:46:30 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/caccabc07cfb56d982d3933a5b938f190ee34ec4
Cr-Commit-Position: refs/heads/master@{#415369}

Powered by Google App Engine
This is Rietveld 408576698