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

Issue 1838983002: Ensure display items are unique when multiple nested clip paths are used (Closed)

Created:
4 years, 8 months ago by pdr.
Modified:
4 years, 8 months ago
Reviewers:
chrishtr, wkorman
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 display items are unique when multiple nested clip paths are used This patch fixes a bug where nested clip paths (drawn as a mask) would use the LayoutSVGResourceClipper as the display item client id. This would crash when multiple elements referenced the same nested clip paths because the LayoutSVGResourceClipper display item client would be referenced multiple times. This patch wraps clip path masks in a single display item. BUG=598416 Committed: https://crrev.com/3ddca928b60a3ee16c3ffe945dd6b3916883e2ea Cr-Commit-Position: refs/heads/master@{#383791}

Patch Set 1 #

Patch Set 2 : Cleanup createContentPicture too #

Total comments: 4

Patch Set 3 : Make patch great again #

Total comments: 2

Messages

Total messages: 18 (6 generated)
pdr.
4 years, 8 months ago (2016-03-29 06:10:53 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1838983002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1838983002/20001
4 years, 8 months ago (2016-03-29 06:11:05 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-29 07:48:12 UTC) #6
wkorman
lgtm https://codereview.chromium.org/1838983002/diff/20001/third_party/WebKit/Source/core/paint/SVGClipPainter.h File third_party/WebKit/Source/core/paint/SVGClipPainter.h (right): https://codereview.chromium.org/1838983002/diff/20001/third_party/WebKit/Source/core/paint/SVGClipPainter.h#newcode37 third_party/WebKit/Source/core/paint/SVGClipPainter.h:37: bool drawClipAsMask(GraphicsContext&, const LayoutObject&, const FloatRect& targetBoundingBox, const ...
4 years, 8 months ago (2016-03-29 17:56:33 UTC) #7
chrishtr
https://codereview.chromium.org/1838983002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp (left): https://codereview.chromium.org/1838983002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp#oldcode161 third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp:161: PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(AffineTransform& contentTransformation, const FloatRect& targetBoundingBox, SVGMaskPainter also ...
4 years, 8 months ago (2016-03-29 17:59:05 UTC) #8
pdr.
https://codereview.chromium.org/1838983002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp (left): https://codereview.chromium.org/1838983002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp#oldcode161 third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp:161: PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(AffineTransform& contentTransformation, const FloatRect& targetBoundingBox, On 2016/03/29 ...
4 years, 8 months ago (2016-03-29 18:06:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1838983002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1838983002/40001
4 years, 8 months ago (2016-03-29 18:06:53 UTC) #12
chrishtr
https://codereview.chromium.org/1838983002/diff/40001/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp File third_party/WebKit/Source/core/paint/SVGClipPainter.cpp (right): https://codereview.chromium.org/1838983002/diff/40001/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp#newcode126 third_party/WebKit/Source/core/paint/SVGClipPainter.cpp:126: SubtreeContentTransformScope contentTransformScope(contentTransform); This used to be allocated only if ...
4 years, 8 months ago (2016-03-29 18:45:40 UTC) #13
pdr.
On 2016/03/29 at 18:45:40, chrishtr wrote: > https://codereview.chromium.org/1838983002/diff/40001/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp > File third_party/WebKit/Source/core/paint/SVGClipPainter.cpp (right): > > https://codereview.chromium.org/1838983002/diff/40001/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp#newcode126 ...
4 years, 8 months ago (2016-03-29 18:56:46 UTC) #14
chrishtr
https://codereview.chromium.org/1838983002/diff/40001/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp File third_party/WebKit/Source/core/paint/SVGClipPainter.cpp (right): https://codereview.chromium.org/1838983002/diff/40001/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp#newcode126 third_party/WebKit/Source/core/paint/SVGClipPainter.cpp:126: SubtreeContentTransformScope contentTransformScope(contentTransform); On 2016/03/29 at 18:45:40, chrishtr wrote: > ...
4 years, 8 months ago (2016-03-29 19:05:32 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-29 19:21:54 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 19:23:22 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3ddca928b60a3ee16c3ffe945dd6b3916883e2ea
Cr-Commit-Position: refs/heads/master@{#383791}

Powered by Google App Engine
This is Rietveld 408576698