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

Issue 976543002: Fix pixel snapping issue when transforming (Closed)

Created:
5 years, 9 months ago by qiankun
Modified:
5 years, 7 months ago
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

Fix pixel snapping issue when transforming Border with fractional location and size is accumulating the subpixel offset while walking the rendering tree. But its clip rect doesn't accumulate the offset. This results some pixels will be clipped by the clip rect. This change applies sub-pixel accumulation to layerBounds, foregroundBounds and backgroundBounds if render layer doesn't paint into its own backing layer. This CL needs to land after https://codereview.chromium.org/999033002/ which advances document life cycle to CompositingClean before hit testing to avoid assert failure. BUG=332197 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193611

Patch Set 1 #

Total comments: 4

Patch Set 2 : add ref test and fix nit #

Patch Set 3 : remove unnecessary styling #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : update to ToT #

Patch Set 6 : fix build failure: renderer -> layoutObject #

Patch Set 7 : fix layout tests #

Total comments: 2

Patch Set 8 : rebase and go back to last patch #

Total comments: 8

Patch Set 9 : fix comments of esprehn #

Total comments: 1

Patch Set 10 : add missing space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -12 lines) Patch
A LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayerPainter.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -11 lines 0 comments Download

Messages

Total messages: 54 (15 generated)
qiankun
PTAL.
5 years, 9 months ago (2015-03-03 07:20:33 UTC) #2
chrishtr
Seems probably correct. Levi?
5 years, 9 months ago (2015-03-04 19:29:37 UTC) #3
leviw_travelin_and_unemployed
Code change LGTM. Can You make this a ref test? https://codereview.chromium.org/976543002/diff/1/LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html File LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html (right): https://codereview.chromium.org/976543002/diff/1/LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html#newcode1 ...
5 years, 9 months ago (2015-03-04 19:32:35 UTC) #4
qiankun
Thanks for review. I updated the CL, please take another look. https://codereview.chromium.org/976543002/diff/1/LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html File LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html (right): ...
5 years, 9 months ago (2015-03-05 06:15:30 UTC) #5
leviw_travelin_and_unemployed
> https://codereview.chromium.org/976543002/diff/1/LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html#newcode12 > LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html:12: font-size: 534%; > On 2015/03/04 19:32:34, leviw wrote: > > Nit: ...
5 years, 9 months ago (2015-03-05 10:00:59 UTC) #6
qiankun
On 2015/03/05 10:00:59, leviw wrote: > > > https://codereview.chromium.org/976543002/diff/1/LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html#newcode12 > > LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html:12: > font-size: 534%; ...
5 years, 9 months ago (2015-03-05 11:45:18 UTC) #7
leviw_travelin_and_unemployed
LGTM.
5 years, 9 months ago (2015-03-05 19:15:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976543002/40001
5 years, 9 months ago (2015-03-06 00:42:20 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/50985)
5 years, 9 months ago (2015-03-06 07:27:13 UTC) #12
qiankun
Updated the patch to fix multi-column-layout tests failure. Can I accept try-bot permission for pre-commit ...
5 years, 9 months ago (2015-03-09 09:42:12 UTC) #13
qiankun
On 2015/03/09 09:42:12, qiankun wrote: > Updated the patch to fix multi-column-layout tests failure. Can ...
5 years, 9 months ago (2015-03-09 09:42:51 UTC) #14
chrishtr
Hi, I don't see the multi-column fix in this patchset. ?
5 years, 9 months ago (2015-03-09 17:37:47 UTC) #15
qiankun
Thanks for review. Could you help me to trigger try-bots? https://codereview.chromium.org/976543002/diff/60001/Source/core/layout/Layer.cpp File Source/core/layout/Layer.cpp (right): https://codereview.chromium.org/976543002/diff/60001/Source/core/layout/Layer.cpp#newcode1639 ...
5 years, 9 months ago (2015-03-10 01:37:00 UTC) #16
leviw_travelin_and_unemployed
LGTM.
5 years, 9 months ago (2015-03-10 03:08:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976543002/60001
5 years, 9 months ago (2015-03-10 03:09:56 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_rel/builds/30955)
5 years, 9 months ago (2015-03-10 03:14:50 UTC) #21
qiankun
On 2015/03/10 03:14:50, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-10 03:26:54 UTC) #22
pdr.
LGTM
5 years, 9 months ago (2015-03-10 03:33:07 UTC) #23
leviw_travelin_and_unemployed
LGTPDR
5 years, 9 months ago (2015-03-10 03:46:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976543002/80001
5 years, 9 months ago (2015-03-10 04:13:55 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_rel/builds/30958)
5 years, 9 months ago (2015-03-10 04:38:42 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976543002/100001
5 years, 9 months ago (2015-03-10 05:59:15 UTC) #33
qiankun
Sorry to bother you again. PTAL. https://codereview.chromium.org/976543002/diff/120001/Source/core/layout/Layer.cpp File Source/core/layout/Layer.cpp (right): https://codereview.chromium.org/976543002/diff/120001/Source/core/layout/Layer.cpp#newcode1631 Source/core/layout/Layer.cpp:1631: if (isAllowedToQueryCompositingState()) Check ...
5 years, 9 months ago (2015-03-10 10:13:16 UTC) #35
leviw_travelin_and_unemployed
https://codereview.chromium.org/976543002/diff/120001/Source/core/layout/Layer.cpp File Source/core/layout/Layer.cpp (right): https://codereview.chromium.org/976543002/diff/120001/Source/core/layout/Layer.cpp#newcode1631 Source/core/layout/Layer.cpp:1631: if (isAllowedToQueryCompositingState()) On 2015/03/10 at 10:13:16, qiankun wrote: > ...
5 years, 9 months ago (2015-03-10 17:55:51 UTC) #36
qiankun
On 2015/03/10 17:55:51, leviw wrote: > https://codereview.chromium.org/976543002/diff/120001/Source/core/layout/Layer.cpp > File Source/core/layout/Layer.cpp (right): > > https://codereview.chromium.org/976543002/diff/120001/Source/core/layout/Layer.cpp#newcode1631 > ...
5 years, 9 months ago (2015-03-19 16:34:09 UTC) #37
leviw_travelin_and_unemployed
lgtm
5 years, 9 months ago (2015-03-20 07:42:42 UTC) #38
esprehn
https://codereview.chromium.org/976543002/diff/140001/LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html File LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html (right): https://codereview.chromium.org/976543002/diff/140001/LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html#newcode4 LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html:4: <title>Fractional border</title> leave out html, head and title. https://codereview.chromium.org/976543002/diff/140001/LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html#newcode17 ...
5 years, 9 months ago (2015-03-24 23:13:23 UTC) #40
qiankun
Thanks esprehn for review. https://codereview.chromium.org/976543002/diff/140001/LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html File LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html (right): https://codereview.chromium.org/976543002/diff/140001/LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html#newcode4 LayoutTests/fast/sub-pixel/fractional-border-location-and-size-expected.html:4: <title>Fractional border</title> On 2015/03/24 23:13:23, ...
5 years, 9 months ago (2015-03-26 11:06:25 UTC) #41
esprehn
lgtm https://codereview.chromium.org/976543002/diff/160001/LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html File LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html (right): https://codereview.chromium.org/976543002/diff/160001/LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html#newcode4 LayoutTests/fast/sub-pixel/fractional-border-location-and-size.html:4: transform:scale(1); nit missing space after :
5 years, 8 months ago (2015-04-09 19:39:24 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976543002/180001
5 years, 8 months ago (2015-04-13 02:27:23 UTC) #45
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://src.chromium.org/viewvc/blink?view=rev&revision=193611
5 years, 8 months ago (2015-04-13 05:03:19 UTC) #46
chrishtr
How exactly is https://codereview.chromium.org/999033002/ directly related to this CL? I can still get the test ...
5 years, 7 months ago (2015-05-05 22:25:23 UTC) #47
leviw_travelin_and_unemployed
On 2015/05/05 at 22:25:23, chrishtr wrote: > How exactly is https://codereview.chromium.org/999033002/ directly related to this ...
5 years, 7 months ago (2015-05-05 22:27:57 UTC) #48
chrishtr
On 2015/05/05 at 22:27:57, leviw wrote: > On 2015/05/05 at 22:25:23, chrishtr wrote: > > ...
5 years, 7 months ago (2015-05-05 22:33:08 UTC) #49
leviw_travelin_and_unemployed
On 2015/05/05 at 22:33:08, chrishtr wrote: > On 2015/05/05 at 22:27:57, leviw wrote: > > ...
5 years, 7 months ago (2015-05-05 22:35:47 UTC) #50
chrishtr
On 2015/05/05 at 22:35:47, leviw wrote: > On 2015/05/05 at 22:33:08, chrishtr wrote: > > ...
5 years, 7 months ago (2015-05-05 22:40:47 UTC) #51
leviw_travelin_and_unemployed
On 2015/05/05 at 22:40:47, chrishtr wrote: > On 2015/05/05 at 22:35:47, leviw wrote: > > ...
5 years, 7 months ago (2015-05-05 23:14:34 UTC) #52
qiankun
On 2015/05/05 22:25:23, chrishtr wrote: > How exactly is https://codereview.chromium.org/999033002/ directly related to > this ...
5 years, 7 months ago (2015-05-06 03:23:57 UTC) #53
chrishtr
5 years, 7 months ago (2015-05-06 03:41:24 UTC) #54
Message was sent while issue was closed.
On 2015/05/06 at 03:23:57, qiankun.miao wrote:
> On 2015/05/05 22:25:23, chrishtr wrote:
> > How exactly is https://codereview.chromium.org/999033002/ directly related
to
> > this CL? I can still get the test from this CL to pass even if CL 999033002
is
> > reverted.
> 
> After reverting CL 999033002, I got crash for the tests in comments#35. Do you
run release or debug layout tests? I can get crash with debug version locally
but not release.

I was able to get them to crash, yes.

Powered by Google App Engine
This is Rietveld 408576698