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

Issue 1577843002: Fix SVG sizing in crossfaded images (Closed)

Created:
4 years, 11 months ago by davve
Modified:
4 years, 11 months ago
Reviewers:
pdr., fs
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SVG sizing in crossfaded images Wrap SVGImages inside SVGImageForContainer to maintain the correct size. SVGImages are shared between all places the same resource is used and the wrapper is necessary to get the proper size for a particular instantiation. BUG=574172 Committed: https://crrev.com/3ca78bf60493da8b2b7ad63f59bd169cb00a4947 Cr-Commit-Position: refs/heads/master@{#368816}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Expand test to test both paths of cross-fade; 1.0 -> 1 literals #

Patch Set 3 : Adjust test to make it more obvious when it fails #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff-expected.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp View 1 2 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (11 generated)
davve
PTAL
4 years, 11 months ago (2016-01-11 15:12:41 UTC) #3
fs
+pdr for platform/ LGTM w/ nit https://codereview.chromium.org/1577843002/diff/1/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html File third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html (right): https://codereview.chromium.org/1577843002/diff/1/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html#newcode7 third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html:7: background-image: -webkit-cross-fade(url("data:image/svg+xml,<svg viewBox='0 ...
4 years, 11 months ago (2016-01-11 15:26:46 UTC) #5
davve
https://codereview.chromium.org/1577843002/diff/1/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html File third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html (right): https://codereview.chromium.org/1577843002/diff/1/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html#newcode7 third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html:7: background-image: -webkit-cross-fade(url("data:image/svg+xml,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' ...
4 years, 11 months ago (2016-01-11 16:02:43 UTC) #6
fs
https://codereview.chromium.org/1577843002/diff/1/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html File third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html (right): https://codereview.chromium.org/1577843002/diff/1/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html#newcode7 third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-diff.html:7: background-image: -webkit-cross-fade(url("data:image/svg+xml,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' ...
4 years, 11 months ago (2016-01-11 16:05:45 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577843002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577843002/20001
4 years, 11 months ago (2016-01-11 16:12:22 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577843002/40001
4 years, 11 months ago (2016-01-11 16:18:53 UTC) #12
pdr.
On 2016/01/11 at 16:18:53, commit-bot wrote: > Dry run: CQ is trying da patch. Follow ...
4 years, 11 months ago (2016-01-11 19:32:30 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-11 19:46:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1577843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1577843002/40001
4 years, 11 months ago (2016-01-12 07:27:30 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-12 07:33:44 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 07:34:42 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3ca78bf60493da8b2b7ad63f59bd169cb00a4947
Cr-Commit-Position: refs/heads/master@{#368816}

Powered by Google App Engine
This is Rietveld 408576698