Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(53)

Issue 1197843004: Allocate a drawing recorder locally to BoxPainter code in the mask phase. (Closed)

Created:
4 years, 10 months ago by chrishtr
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, dshwang, slimming-paint-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Allocate a drawing recorder locally to BoxPainter code in the mask phase. Previously, call sites were expected to allocate one. This is a buggy pattern, since some might forget. In particular, PartPainter did forget, causing the referenced crash. BUG=500426, 501485 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197518

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -11 lines) Patch
A LayoutTests/paint/frames/iframe-with-mask.html View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/paint/frames/iframe-with-mask-expected.html View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/paint/plugins/plugin-object-with-mask.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/paint/plugins/plugin-object-with-mask-expected.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/paint/BlockPainter.cpp View 1 2 chunks +2 lines, -4 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 1 1 chunk +6 lines, -1 line 2 comments Download
M Source/core/paint/ReplacedPainter.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/paint/ReplicaPainter.cpp View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
chrishtr
4 years, 10 months ago (2015-06-19 22:47:00 UTC) #2
chrishtr
Also added a test with iframes, to address: https://code.google.com/p/chromium/issues/detail?id=501485#c16 https://code.google.com/p/chromium/issues/detail?id=501485#c2
4 years, 10 months ago (2015-06-19 23:01:27 UTC) #3
wkorman
lgtm https://codereview.chromium.org/1197843004/diff/60001/Source/core/paint/BoxPainter.cpp File Source/core/paint/BoxPainter.cpp (right): https://codereview.chromium.org/1197843004/diff/60001/Source/core/paint/BoxPainter.cpp#newcode526 Source/core/paint/BoxPainter.cpp:526: if (recorder.canUseCachedDrawing()) Could also just add this to ...
4 years, 10 months ago (2015-06-19 23:20:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1197843004/60001
4 years, 10 months ago (2015-06-19 23:23:57 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59890)
4 years, 10 months ago (2015-06-20 00:55:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1197843004/60001
4 years, 10 months ago (2015-06-20 01:06:40 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=197518
4 years, 10 months ago (2015-06-20 01:44:03 UTC) #11
chrishtr
4 years, 10 months ago (2015-06-20 02:22:45 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/1197843004/diff/60001/Source/core/paint/BoxPa...
File Source/core/paint/BoxPainter.cpp (right):

https://codereview.chromium.org/1197843004/diff/60001/Source/core/paint/BoxPa...
Source/core/paint/BoxPainter.cpp:526: if (recorder.canUseCachedDrawing())
On 2015/06/19 at 23:20:43, wkorman wrote:
> Could also just add this to the three bail-out conditionals we've already got
on line 528 but perhaps having separate is clearer, fine either way.

I prefer separate, to make it clear we are checking for caching.

Powered by Google App Engine
This is Rietveld 408576698