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

Issue 2124583002: Consider 'order' when updating feConvolveMatrix 'target*' (Closed)

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

Description

Consider 'order' when updating feConvolveMatrix 'target*' SVGFEConvolveMatrixElement's 'targetX' or 'targetY' attribute depend on 'order' for their initial value. When updating the target value of an instantiated FEConvolveMatrix, order would however not be considered, instead using the initial value of the attribute (zero.) Refactor the code a bit to make it easy to consider the correct initial value even when updating an existing FEConvolveMatrix, introducing new methods matrixOrder() and targetPoint(). Clean up and simplify as appropriate. This fixes the following tests: svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr.html svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr.html svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetX-prop.html svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetY-prop.html with https://codereview.chromium.org/2104943005 applied. BUG=231560 Committed: https://crrev.com/2afeaf3f17234c598144446360c869d7cb442867 Cr-Commit-Position: refs/heads/master@{#403814}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -25 lines) Patch
M third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.h View 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp View 4 chunks +24 lines, -23 lines 2 comments Download

Messages

Total messages: 10 (4 generated)
fs
4 years, 5 months ago (2016-07-04 17:36:24 UTC) #3
f(malita)
lgtm https://codereview.chromium.org/2124583002/diff/1/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp File third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp (right): https://codereview.chromium.org/2124583002/diff/1/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp#newcode134 third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp:134: target.setX(order.width() / 2); I was worried here about ...
4 years, 5 months ago (2016-07-05 15:20:12 UTC) #4
fs
https://codereview.chromium.org/2124583002/diff/1/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp File third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp (right): https://codereview.chromium.org/2124583002/diff/1/third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp#newcode134 third_party/WebKit/Source/core/svg/SVGFEConvolveMatrixElement.cpp:134: target.setX(order.width() / 2); On 2016/07/05 at 15:20:12, f(malita) wrote: ...
4 years, 5 months ago (2016-07-05 15:29:43 UTC) #5
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/2124583002/1
4 years, 5 months ago (2016-07-05 17:30:16 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-05 19:29:26 UTC) #8
commit-bot: I haz the power
4 years, 5 months ago (2016-07-05 19:31:29 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2afeaf3f17234c598144446360c869d7cb442867
Cr-Commit-Position: refs/heads/master@{#403814}

Powered by Google App Engine
This is Rietveld 408576698