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

Issue 2131803002: Ensure SVG PaintOffset is reset at the HTML/SVG boundary [spv2] (Closed)

Created:
4 years, 5 months ago by pdr.
Modified:
4 years, 5 months ago
Reviewers:
chrishtr, trchen
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure SVG PaintOffset is reset at the HTML/SVG boundary [spv2] This patch fixes a crash on https://codepen.io where the paint offset in PaintPropertyTreeBuilder::updateSvgLocalToBorderBoxTransform would not be reset if transformToPixelSnappedBorderBox was identity. The new testcase, SvgPixelSnappingShouldResetPaintOffset, both ensures the DCHECK in PaintPropertyTreeBuilder::updateTransform is not hit, and verifies the transform property tree is correct in this case. BUG=600618 Committed: https://crrev.com/306affbd20fa8e16b8dd7677061fabde355ead8d Cr-Commit-Position: refs/heads/master@{#404483}

Patch Set 1 #

Total comments: 3

Patch Set 2 : sdflj #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
pdr.
4 years, 5 months ago (2016-07-08 01:49:49 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2131803002/1
4 years, 5 months ago (2016-07-08 01:49:53 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-08 03:23:53 UTC) #6
chrishtr
https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode266 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:266: if (transformToBorderBox.isIdentity()) { What does paintOffset being zero have ...
4 years, 5 months ago (2016-07-08 15:07:03 UTC) #7
pdr.
On 2016/07/08 at 15:07:03, chrishtr wrote: > https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp > File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): > > https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode266 ...
4 years, 5 months ago (2016-07-08 17:19:29 UTC) #8
chrishtr
https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode269 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:269: context.paintOffset = LayoutPoint(); How about just moving this line ...
4 years, 5 months ago (2016-07-08 17:40:21 UTC) #9
pdr.
https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2131803002/diff/1/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode269 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:269: context.paintOffset = LayoutPoint(); On 2016/07/08 at 17:40:21, chrishtr wrote: ...
4 years, 5 months ago (2016-07-08 18:04:40 UTC) #10
chrishtr
lgtm
4 years, 5 months ago (2016-07-08 18:05:27 UTC) #12
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/2131803002/20001
4 years, 5 months ago (2016-07-08 18:06:11 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-08 20:46:10 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 20:47:58 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/306affbd20fa8e16b8dd7677061fabde355ead8d
Cr-Commit-Position: refs/heads/master@{#404483}

Powered by Google App Engine
This is Rietveld 408576698