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

Issue 1278113003: Calculate correct clip foregroundBound and backgroundBound (Closed)

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

Description

Calculate correct clip foregroundBound and backgroundBound This is a followup CL of https://codereview.chromium.org/976543002/. In that CL, sub-pixel accumulation is considered to calculate layerBounds, foregroundBounds and backgroundBounds if renderLayer doesn't paint into its own backing layer. But in that CL, sub-pixel accumulation didn't apply to foregroundBounds and backgroundBounds for unpaginated layers. This CL fixes above issue. BUG=515395 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201030

Patch Set 1 #

Patch Set 2 : only for offsetFromRoot is non-null #

Total comments: 2

Patch Set 3 : correct background #

Patch Set 4 : add layout test and fix background #

Total comments: 6

Patch Set 5 : fix background #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -2 lines) Patch
A LayoutTests/fast/sub-pixel/clip-zoomed-rect-box-with-overflow.html View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/sub-pixel/clip-zoomed-rect-box-with-overflow-expected.html View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayerClipper.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayerPainter.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
qiankun
PTAL.
5 years, 4 months ago (2015-08-07 14:49:57 UTC) #2
pdr.
https://codereview.chromium.org/1278113003/diff/20001/Source/core/paint/DeprecatedPaintLayerClipper.cpp File Source/core/paint/DeprecatedPaintLayerClipper.cpp (right): https://codereview.chromium.org/1278113003/diff/20001/Source/core/paint/DeprecatedPaintLayerClipper.cpp#newcode232 Source/core/paint/DeprecatedPaintLayerClipper.cpp:232: foregroundRect.move(context.subPixelAccumulation); Why don't we need to move backgroundRect too?
5 years, 4 months ago (2015-08-07 23:20:31 UTC) #3
chrishtr
Please add a test.
5 years, 4 months ago (2015-08-08 02:51:40 UTC) #4
qiankun
https://codereview.chromium.org/1278113003/diff/20001/Source/core/paint/DeprecatedPaintLayerClipper.cpp File Source/core/paint/DeprecatedPaintLayerClipper.cpp (right): https://codereview.chromium.org/1278113003/diff/20001/Source/core/paint/DeprecatedPaintLayerClipper.cpp#newcode232 Source/core/paint/DeprecatedPaintLayerClipper.cpp:232: foregroundRect.move(context.subPixelAccumulation); On 2015/08/07 23:20:31, pdr wrote: > Why don't ...
5 years, 4 months ago (2015-08-13 10:36:03 UTC) #6
qiankun
hi reviewers, please help to review this new patch. Thanks!
5 years, 4 months ago (2015-08-17 09:03:10 UTC) #7
pdr.
Chris is out on vacation so I'll give this a shot. May need some handholding/patience ...
5 years, 4 months ago (2015-08-17 21:17:54 UTC) #8
qiankun
https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp File Source/core/paint/DeprecatedPaintLayerClipper.cpp (left): https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp#oldcode220 Source/core/paint/DeprecatedPaintLayerClipper.cpp:220: backgroundRect.move(roundedIntSize(context.subPixelAccumulation)); On 2015/08/17 21:17:53, pdr wrote: > We used ...
5 years, 4 months ago (2015-08-19 09:14:19 UTC) #9
pdr.
https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp File Source/core/paint/DeprecatedPaintLayerClipper.cpp (right): https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp#newcode220 Source/core/paint/DeprecatedPaintLayerClipper.cpp:220: backgroundRect.intersect(paintDirtyRect); On 2015/08/19 at 09:14:19, qiankun wrote: > On ...
5 years, 4 months ago (2015-08-20 05:55:13 UTC) #10
qiankun
https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp File Source/core/paint/DeprecatedPaintLayerClipper.cpp (right): https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp#newcode220 Source/core/paint/DeprecatedPaintLayerClipper.cpp:220: backgroundRect.intersect(paintDirtyRect); On 2015/08/20 05:55:13, pdr wrote: > On 2015/08/19 ...
5 years, 4 months ago (2015-08-20 06:08:43 UTC) #11
pdr.
On 2015/08/20 at 06:08:43, qiankun.miao wrote: > https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp > File Source/core/paint/DeprecatedPaintLayerClipper.cpp (right): > > https://codereview.chromium.org/1278113003/diff/60001/Source/core/paint/DeprecatedPaintLayerClipper.cpp#newcode220 ...
5 years, 4 months ago (2015-08-20 06:15:56 UTC) #12
qiankun
On 2015/08/20 06:15:56, pdr wrote: > On 2015/08/20 at 06:08:43, qiankun.miao wrote: > > > ...
5 years, 4 months ago (2015-08-21 09:48:29 UTC) #13
pdr.
On 2015/08/21 at 09:48:29, qiankun.miao wrote: > On 2015/08/20 06:15:56, pdr wrote: > > On ...
5 years, 4 months ago (2015-08-21 21:40:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278113003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278113003/80001
5 years, 4 months ago (2015-08-21 21:41:11 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-22 00:38:09 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201030

Powered by Google App Engine
This is Rietveld 408576698