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

Issue 2681803004: SVGTransformList.consolidate() should return null on an empty list (Closed)

Created:
3 years, 10 months ago by fs
Modified:
3 years, 10 months ago
Reviewers:
sof
CC:
fs, blink-reviews, chromium-reviews, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SVGTransformList.consolidate() should return null on an empty list SVGTransformList.consolidate() returns an SVGTransform with type "unknown", which is an invalid object that other parts of the code couldn't cope with. The specification: https://svgwg.org/svg2-draft/coords.html#__svg__SVGTransformList__consolidate say that 'null' should be returned in this case though, so do that instead. Rewrite svg/dom/SVGTransformList-empty-list-consolidation.html to use actually assert this part of the contract, and also convert it use testharness.js while at it. BUG=688306, 688303 Review-Url: https://codereview.chromium.org/2681803004 Cr-Commit-Position: refs/heads/master@{#448994} Committed: https://chromium.googlesource.com/chromium/src/+/d3173fb3e213e658abf34667f130b55b6baac395

Patch Set 1 #

Messages

Total messages: 13 (9 generated)
fs
TC (svgtransformlist-empty-consolidate-and-initialize-crash.html) derived from looking at the stacktrace from the bug + analysis. Crashes with ...
3 years, 10 months ago (2017-02-08 12:46:36 UTC) #5
sof
lgtm
3 years, 10 months ago (2017-02-08 13:44:07 UTC) #6
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/2681803004/1
3 years, 10 months ago (2017-02-08 14:50:46 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 14:55:43 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d3173fb3e213e658abf34667f130...

Powered by Google App Engine
This is Rietveld 408576698