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

Issue 2753773009: Inherit 'viewBox' into view spec if it is valid (Closed)

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

Description

Inherit 'viewBox' into view spec if it is valid When constructing a view spec from a fragment identifier, the (negated) hasEmptyViewBox() condition was used to determine if the viewBox value should be set from the element. This condition however will equate to: !(is-valid && is-empty) => !is-valid || !is-empty meaning that invalid viewBox values would be transferred. In the case where a <view> element without a 'viewBox' specified was referenced, the 'viewBox' value from the root could be overwritten by an invalid one. Use only the validity of the 'viewBox' to determine if the value should be inherited. BUG=702380 Review-Url: https://codereview.chromium.org/2753773009 Cr-Commit-Position: refs/heads/master@{#457921} Committed: https://chromium.googlesource.com/chromium/src/+/d2c24342da278481fc6041e235f8690828e6760d

Patch Set 1 #

Patch Set 2 : Tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/svg/as-image/resources/green-rect-par-none-view.svg View 1 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/view-with-preserveaspectratio-only.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/as-image/view-with-preserveaspectratio-only-expected.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGViewSpec.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (10 generated)
fs
3 years, 9 months ago (2017-03-18 00:32:18 UTC) #8
pdr.
LGTM SVGSVGElement::localCoordinateSpaceTransform's use also looks a bit suspect.
3 years, 9 months ago (2017-03-18 01:27:30 UTC) #9
fs
On 2017/03/18 at 01:27:30, pdr wrote: > LGTM > > SVGSVGElement::localCoordinateSpaceTransform's use also looks a ...
3 years, 9 months ago (2017-03-18 01:31:47 UTC) #10
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/2753773009/20001
3 years, 9 months ago (2017-03-18 01:32:56 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/d2c24342da278481fc6041e235f8690828e6760d
3 years, 9 months ago (2017-03-18 01:47:45 UTC) #15
fs
3 years, 9 months ago (2017-03-20 08:54:42 UTC) #16
Message was sent while issue was closed.
On 2017/03/18 at 01:31:47, fs wrote:
> On 2017/03/18 at 01:27:30, pdr wrote:
> > LGTM
> > 
> > SVGSVGElement::localCoordinateSpaceTransform's use also looks a bit suspect.
> 
> Yes... I need (to remember) to make a TC (and sleep.)

Filed crbug.com/703050 for some followup.

Powered by Google App Engine
This is Rietveld 408576698