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

Issue 1901673003: Improve default value handling for SVGSVGElement.width/height (Closed)

Created:
4 years, 8 months ago by fs
Modified:
4 years, 8 months ago
Reviewers:
davve, pdr.
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, krit, Eric Willigers, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve default value handling for SVGSVGElement.width/height When a length attribute is either removed or set to an invalid value, it would get set to '0'. It should however be set to the initial value specified for the attribute (possibly presentation attribute) in question. The test svg/custom/disallow-non-lengths-in-attrs.html is tweaked to accommodate for this. BUG=604093 Committed: https://crrev.com/6cd726f3f3ed5d5fecfe725bb3c85dc2cac39e85 Cr-Commit-Position: refs/heads/master@{#388250}

Patch Set 1 #

Patch Set 2 : Tweak old test. #

Total comments: 3

Patch Set 3 : Move to parseAttribute #

Messages

Total messages: 18 (8 generated)
fs
This is an "outtake" from a branch that aims to fix issue 474523 (and similar ...
4 years, 8 months ago (2016-04-18 17:40:18 UTC) #4
fs
On 2016/04/18 at 17:40:18, fs wrote: > This is an "outtake" from a branch that ...
4 years, 8 months ago (2016-04-18 17:44:12 UTC) #5
pdr.
https://codereview.chromium.org/1901673003/diff/20001/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h File third_party/WebKit/Source/core/svg/SVGAnimatedLength.h (right): https://codereview.chromium.org/1901673003/diff/20001/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h#newcode59 third_party/WebKit/Source/core/svg/SVGAnimatedLength.h:59: const char* m_defaultValue; This seems like a memory regression ...
4 years, 8 months ago (2016-04-18 21:25:14 UTC) #6
pdr.
https://codereview.chromium.org/1901673003/diff/20001/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h File third_party/WebKit/Source/core/svg/SVGAnimatedLength.h (right): https://codereview.chromium.org/1901673003/diff/20001/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h#newcode59 third_party/WebKit/Source/core/svg/SVGAnimatedLength.h:59: const char* m_defaultValue; On 2016/04/18 at 21:25:14, pdr wrote: ...
4 years, 8 months ago (2016-04-18 21:36:24 UTC) #7
fs
https://codereview.chromium.org/1901673003/diff/20001/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h File third_party/WebKit/Source/core/svg/SVGAnimatedLength.h (right): https://codereview.chromium.org/1901673003/diff/20001/third_party/WebKit/Source/core/svg/SVGAnimatedLength.h#newcode59 third_party/WebKit/Source/core/svg/SVGAnimatedLength.h:59: const char* m_defaultValue; On 2016/04/18 at 21:36:23, pdr wrote: ...
4 years, 8 months ago (2016-04-18 21:55:07 UTC) #8
davve
On 2016/04/18 21:55:07, fs wrote: > We could probably fix it by a crutch in ...
4 years, 8 months ago (2016-04-19 08:38:20 UTC) #12
pdr.
On 2016/04/19 at 08:38:20, davve wrote: > On 2016/04/18 21:55:07, fs wrote: > > > ...
4 years, 8 months ago (2016-04-19 17:39:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1901673003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1901673003/40001
4 years, 8 months ago (2016-04-19 18:13:07 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-19 18:23:31 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:14:01 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6cd726f3f3ed5d5fecfe725bb3c85dc2cac39e85
Cr-Commit-Position: refs/heads/master@{#388250}

Powered by Google App Engine
This is Rietveld 408576698