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

Issue 1088613002: CTM-independent BackgroundBleedBackgroundOverBorder implementation (Closed)

Created:
5 years, 8 months ago by f(malita)
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, dshwang, reed1, slimming-paint-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

CTM-independent BackgroundBleedBackgroundOverBorder implementation The BackgroundBleedBackgroundOverBorder backdrop bleed avoidance strategy draws opaque backgrounds (shrunk to the inner border edge) on top of the border. It also attempts to expand the inner border edge by one pixel in device space, to mitigate anti-aliasing blending artifacts along the common inner-border/outer-background edge. This approach is fragile and doesn't work reliably with impl-side painting and slimming paint, because the final device space transform is unknown at recording time. The CL updates BackgroundBleedBackgroundOverBorder to fill the inner border rrect completely. Since this is no longer a device-space dependent operation, it now produces correct results under arbitrary rasterization-time transformations. It also becomes usable with slimming paint. BUG=445598 R=junov@chromium.org,chrishtr@chromium.org,robertphillips@google.com Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193660

Patch Set 1 #

Patch Set 2 : avoid rrect copies for rectangular borders #

Patch Set 3 : expectations #

Total comments: 6

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -73 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M Source/core/paint/BoxDecorationData.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/paint/BoxDecorationData.cpp View 1 2 3 3 chunks +38 lines, -36 lines 0 comments Download
M Source/core/paint/BoxPainter.h View 1 chunk +3 lines, -4 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 1 11 chunks +38 lines, -32 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
f(malita)
This has no effect for non-slimming-paint tests, but fixes a bunch of slimming paint backdrop ...
5 years, 8 months ago (2015-04-13 20:07:21 UTC) #1
Justin Novosad
On 2015/04/13 20:07:21, f(malita) wrote: > This has no effect for non-slimming-paint tests, but fixes ...
5 years, 8 months ago (2015-04-13 20:24:53 UTC) #2
chrishtr
https://codereview.chromium.org/1088613002/diff/40001/Source/core/paint/BoxDecorationData.cpp File Source/core/paint/BoxDecorationData.cpp (right): https://codereview.chromium.org/1088613002/diff/40001/Source/core/paint/BoxDecorationData.cpp#newcode43 Source/core/paint/BoxDecorationData.cpp:43: AffineTransform ctm = context->getCTM(); Please factor this code into ...
5 years, 8 months ago (2015-04-13 20:40:11 UTC) #3
f(malita)
https://codereview.chromium.org/1088613002/diff/40001/Source/core/paint/BoxDecorationData.cpp File Source/core/paint/BoxDecorationData.cpp (right): https://codereview.chromium.org/1088613002/diff/40001/Source/core/paint/BoxDecorationData.cpp#newcode43 Source/core/paint/BoxDecorationData.cpp:43: AffineTransform ctm = context->getCTM(); On 2015/04/13 20:40:11, chrishtr wrote: ...
5 years, 8 months ago (2015-04-13 21:17:59 UTC) #4
chrishtr
On 2015/04/13 at 21:17:59, fmalita wrote: > https://codereview.chromium.org/1088613002/diff/40001/Source/core/paint/BoxDecorationData.cpp > File Source/core/paint/BoxDecorationData.cpp (right): > > https://codereview.chromium.org/1088613002/diff/40001/Source/core/paint/BoxDecorationData.cpp#newcode43 ...
5 years, 8 months ago (2015-04-13 21:26:50 UTC) #5
f(malita)
On 2015/04/13 21:26:50, chrishtr wrote: > On 2015/04/13 at 21:17:59, fmalita wrote: > https://codereview.chromium.org/1088613002/diff/40001/Source/core/paint/BoxDecorationData.cpp#newcode64 > ...
5 years, 8 months ago (2015-04-13 21:35:43 UTC) #6
chrishtr
lgtm
5 years, 8 months ago (2015-04-13 21:42:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1088613002/60001
5 years, 8 months ago (2015-04-13 21:53:42 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-13 23:49:30 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193660

Powered by Google App Engine
This is Rietveld 408576698