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

Issue 1098273002: Fix SVG animations for preserveAspectRatio attribute (Closed)

Created:
5 years, 8 months ago by b.siddharth
Modified:
5 years, 7 months ago
Reviewers:
pdr., eae, fs
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, Mike Lawther (Google), blink-reviews-animation_chromium.org, rwlbuis, kouhei+svg_chromium.org, dstockwell, Timothy Loh, krit, f(malita), darktears, gyuyoung2, Stephen Chennney, Steve Block, pdr+svgwatchlist_chromium.org, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix SVG animations for preserveAspectRatio attribute hasAttribute return false when the attribute is not set and value still animates BUG=235256 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194647

Patch Set 1 #

Total comments: 1

Patch Set 2 : Incorporated review comments #

Total comments: 1

Patch Set 3 : Modified the test case for visual difference. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
A LayoutTests/svg/animations/resources/viewspec-checkaspectparams.svg View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/svg/animations/viewspec-checkaspectparams.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/svg/animations/viewspec-checkaspectparams-expected.html View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/svg/SVGViewSpec.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (4 generated)
b.siddharth
Please have a look on this CL
5 years, 8 months ago (2015-04-22 12:51:37 UTC) #2
eae
pdr would be a better reviewer for this
5 years, 8 months ago (2015-04-22 13:09:11 UTC) #4
b.siddharth
On 2015/04/22 13:09:11, eae wrote: > pdr would be a better reviewer for this Please ...
5 years, 8 months ago (2015-04-23 05:25:01 UTC) #5
b.siddharth
Please check & review, Thanks
5 years, 8 months ago (2015-04-23 06:40:04 UTC) #7
b.siddharth
Please check & review, Thanks
5 years, 8 months ago (2015-04-23 06:40:07 UTC) #8
fs
The very similar test for viewBox got marked as flaky after landing, so please try ...
5 years, 8 months ago (2015-04-23 08:30:32 UTC) #9
pdr.
On 2015/04/23 at 08:30:32, fs wrote: > The very similar test for viewBox got marked ...
5 years, 8 months ago (2015-04-24 00:03:42 UTC) #10
b.siddharth
Incorporated review comments. Please have a look, Thanks.
5 years, 8 months ago (2015-04-24 12:46:09 UTC) #11
fs
Code change looks ok. https://codereview.chromium.org/1098273002/diff/20001/LayoutTests/svg/animations/viewspec-checkaspectparams.html File LayoutTests/svg/animations/viewspec-checkaspectparams.html (right): https://codereview.chromium.org/1098273002/diff/20001/LayoutTests/svg/animations/viewspec-checkaspectparams.html#newcode7 LayoutTests/svg/animations/viewspec-checkaspectparams.html:7: <object width="30" height="30" data="resources/viewspec-checkaspectparams.svg#svgView(viewBox(0,0,30,30);preserveAspectRatio(none))"></object> Won't ...
5 years, 8 months ago (2015-04-24 12:51:21 UTC) #12
b.siddharth
On 2015/04/24 12:51:21, fs wrote: > Code change looks ok. > > https://codereview.chromium.org/1098273002/diff/20001/LayoutTests/svg/animations/viewspec-checkaspectparams.html > File ...
5 years, 8 months ago (2015-04-27 12:10:54 UTC) #13
fs
On 2015/04/27 12:10:54, b.siddharth wrote: > On 2015/04/24 12:51:21, fs wrote: > > Code change ...
5 years, 8 months ago (2015-04-27 12:20:00 UTC) #14
b.siddharth
Modified the testcase for visual result. Please have a look.
5 years, 7 months ago (2015-04-28 10:46:17 UTC) #15
fs
lgtm
5 years, 7 months ago (2015-04-28 15:05:34 UTC) #16
fs
lgtm lgtm
5 years, 7 months ago (2015-04-28 15:05:34 UTC) #17
fs
On 2015/04/28 15:05:34, fs wrote: > lgtm > > lgtm Darn, now I exceeded my ...
5 years, 7 months ago (2015-04-28 15:06:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1098273002/40001
5 years, 7 months ago (2015-04-29 05:20:59 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=194647
5 years, 7 months ago (2015-04-29 07:32:59 UTC) #21
Xianzhu
Tried to open the test file in content_shell (ToT). The test and the ref show ...
5 years, 7 months ago (2015-05-07 23:18:56 UTC) #22
fs
On 2015/05/07 23:18:56, Xianzhu wrote: > Tried to open the test file in content_shell (ToT). ...
5 years, 7 months ago (2015-05-08 08:25:21 UTC) #23
fs
On 2015/05/08 08:25:21, fs wrote: > On 2015/05/07 23:18:56, Xianzhu wrote: > > Tried to ...
5 years, 7 months ago (2015-05-08 08:32:05 UTC) #24
b.siddharth
On 2015/05/08 08:32:05, fs wrote: > On 2015/05/08 08:25:21, fs wrote: > > On 2015/05/07 ...
5 years, 7 months ago (2015-05-08 12:08:27 UTC) #25
b.siddharth
5 years, 7 months ago (2015-05-08 12:09:07 UTC) #26
Message was sent while issue was closed.
On 2015/05/08 12:08:27, b.siddharth wrote:
> On 2015/05/08 08:32:05, fs wrote:
> > On 2015/05/08 08:25:21, fs wrote:
> > > On 2015/05/07 23:18:56, Xianzhu wrote:
> > > > Tried to open the test file in content_shell (ToT). The test and the ref
> > show
> > > > differently. The test shows a 256x256 green box at the bottom-left
corner
> in
> > a
> > > > 500x500 space of the  'object' element, while the ref shows a 500x500
> green
> > > box
> > > > filling the 500x500 space of the 'object' element. Is this expected?
> > > 
> > > It's indeed borked... =/ (how did it make it through CQ? Must have been an
> > > interesting flake...)
> > > 
> > > It should never be 'bottom-left' though (only 'centered' or 'top-left',
> where
> > > the latter is the expected).
> > >  
> > > > https://codereview.chromium.org/1126313004/ changes the timing of pixel
> dump
> > > > (may delay one loop), and now the test's pixel dump mismatches ref's.
I'm
> > > > wondering if this means the test is broken, or we just need to update
the
> > ref.
> > > 
> > > I'll rewrite the ref to be more obviously correct.
> > 
> > https://codereview.chromium.org/1131233002/

Hello @fs: Thanks for fixing the test case.

Powered by Google App Engine
This is Rietveld 408576698