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

Issue 2592613002: LayoutSVGImage should work correctly even when image size is unavailable (Closed)

Created:
4 years ago by yhirano
Modified:
3 years, 12 months ago
CC:
fs, blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), gavinp+loader_chromium.org, gyuyoung2, Nate Chapin, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, loading-reviews_chromium.org, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, tyoshino+watch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

LayoutSVGImage should work correctly even when image size is unavailable Currently LayoutSVGImage::calculateObjectSize returns an invalid size (i.e., size containing NaN) when the image size is unavailable. This change fixes that. BUG=675895 R=fs@opera.com, hiroshige@chromium.org TEST=svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html Committed: https://crrev.com/43c7ce1974915502d40e84e8c3a2ae80d4c9037e Cr-Commit-Position: refs/heads/master@{#440177}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp View 1 chunk +2 lines, -1 line 4 comments Download
M third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
yhirano
4 years ago (2016-12-20 09:30:47 UTC) #3
kouhei (in TOK)
+fmalita lgtm
4 years ago (2016-12-20 09:34:33 UTC) #5
kouhei (in TOK)
Add TEST=svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html ?
4 years ago (2016-12-20 09:35:05 UTC) #6
kouhei (in TOK)
Add TEST=svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html ?
4 years ago (2016-12-20 09:35:05 UTC) #7
yhirano
On 2016/12/20 09:35:05, kouhei wrote: > Add TEST=svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html ? Done.
4 years ago (2016-12-20 10:06:41 UTC) #9
fs
lgtm https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode73 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:73: !cachedImage->isSizeAvailable()) Would this not affect other similar code-paths ...
4 years ago (2016-12-20 10:08:12 UTC) #10
yhirano
https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode73 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:73: !cachedImage->isSizeAvailable()) On 2016/12/20 10:08:12, fs wrote: > Would this ...
4 years ago (2016-12-20 12:06:30 UTC) #13
fs
https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode73 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:73: !cachedImage->isSizeAvailable()) On 2016/12/20 at 12:06:30, yhirano wrote: > On ...
4 years ago (2016-12-20 12:15:45 UTC) #14
f(malita)
lgtm
3 years, 12 months ago (2016-12-21 15:47:18 UTC) #15
hiroshige
lgtm https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2592613002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode73 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:73: !cachedImage->isSizeAvailable()) On 2016/12/20 12:15:45, fs wrote: > On ...
3 years, 12 months ago (2016-12-21 17:51:06 UTC) #16
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/2592613002/1
3 years, 12 months ago (2016-12-21 17:53:52 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 12 months ago (2016-12-21 19:31:01 UTC) #21
commit-bot: I haz the power
3 years, 12 months ago (2016-12-21 19:34:04 UTC) #23
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/43c7ce1974915502d40e84e8c3a2ae80d4c9037e
Cr-Commit-Position: refs/heads/master@{#440177}

Powered by Google App Engine
This is Rietveld 408576698