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

Issue 2545573002: Revert of Don't expand empty rect during rect mapping (Closed)

Created:
4 years ago by Xianzhu
Modified:
4 years ago
Reviewers:
chrishtr, f(malita)
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Don't expand empty rect during rect mapping (patchset #4 id:60001 of https://codereview.chromium.org/2416693002/ ) Reason for revert: It changed transform->mapRect(enclosingIntRect(rect)) to transform->mapRect(FloatRect(enclosingIntRect(rect))) causing missing enclosingIntRect() after the transform. We may also need enclosingIntRect for empty rects because even empty object can have visible filter depending on pixel snapping here. BUG=669774 TEST=paint/invalidation/rotated-subpixel.html Original issue's description: > Don't expand empty rect during rect mapping > > For example, enclosingIntRect(LayoutRect(0.5, 0.5, 0, 0)) results > IntRect(0, 0, 1, 1). This causes unnecessary non-empty visual rects > mapped from empty LayoutRects. > > This CL is mainly to reduce the difference between the old path and > slimmingPaintInvalidation with pixel snapping feature. > > Committed: https://crrev.com/67c516aaed2486295a98d7f0ff2235b921cd7933 > Cr-Commit-Position: refs/heads/master@{#424970} TBR=chrishtr@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. Committed: https://crrev.com/4774275d950261bf9ef99c55b326979298b5c558 Cr-Commit-Position: refs/heads/master@{#435677}

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Rebaseline tests; Make the new test a pixel test #

Patch Set 4 : Avoid platform-specific baselines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -9 lines) Patch
A third_party/WebKit/LayoutTests/paint/invalidation/rotated-subpixel.html View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/rotated-subpixel-expected.png View 1 2 3 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/rotated-subpixel-expected.txt View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/animated-path-inside-transformed-html-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/transform-inline-layered-child-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/editing/selection/transformed-selection-rects-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/svg/animated-path-inside-transformed-html-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/paint/invalidation/transform-inline-layered-child-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/editing/selection/transformed-selection-rects-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/animated-path-inside-transformed-html-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/transform-inline-layered-child-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 38 (20 generated)
Xianzhu
Created Revert of Don't expand empty rect during rect mapping
4 years ago (2016-11-30 20:10:02 UTC) #1
Xianzhu
Ptal mainly the new test paint/invalidation/rotated-subpixel.html
4 years ago (2016-11-30 20:19:02 UTC) #5
chrishtr
lgtm
4 years ago (2016-11-30 20:27:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2545573002/210001
4 years ago (2016-11-30 20:33:08 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/341378)
4 years ago (2016-11-30 22:03:34 UTC) #12
Xianzhu
The new test failed on Mac and Windows because of slight blended pixels around the ...
4 years ago (2016-11-30 22:11:21 UTC) #13
chrishtr
On 2016/11/30 at 22:11:21, wangxianzhu wrote: > The new test failed on Mac and Windows ...
4 years ago (2016-11-30 22:13:40 UTC) #14
Xianzhu
On 2016/11/30 22:13:40, chrishtr wrote: > On 2016/11/30 at 22:11:21, wangxianzhu wrote: > > The ...
4 years ago (2016-11-30 22:19:11 UTC) #15
chrishtr
On 2016/11/30 at 22:19:11, wangxianzhu wrote: > On 2016/11/30 22:13:40, chrishtr wrote: > > On ...
4 years ago (2016-11-30 22:22:55 UTC) #16
Xianzhu
On 2016/11/30 22:22:55, chrishtr wrote: > On 2016/11/30 at 22:19:11, wangxianzhu wrote: > > On ...
4 years ago (2016-11-30 22:36:28 UTC) #17
chrishtr
On 2016/11/30 at 22:36:28, wangxianzhu wrote: > On 2016/11/30 22:22:55, chrishtr wrote: > > On ...
4 years ago (2016-11-30 22:41:27 UTC) #18
chrishtr
Florin, can you take a look at the rebaseline failure for paint/invalidation/rotated-subpixel.html and comment on ...
4 years ago (2016-11-30 22:45:25 UTC) #20
Xianzhu
The value of the extra pixels is #fefefe (#ffffff expected). As this is almost invisible ...
4 years ago (2016-11-30 23:38:05 UTC) #21
Xianzhu
Chris, what do you think about landing the patch (with the new test as a ...
4 years ago (2016-12-01 18:13:31 UTC) #30
chrishtr
lgtm Ok. In parallel, Florin is looking into the issue. Please file the bug against ...
4 years ago (2016-12-01 19:07:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2545573002/250001
4 years ago (2016-12-01 19:25:22 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:250001)
4 years ago (2016-12-01 19:30:38 UTC) #36
commit-bot: I haz the power
4 years ago (2016-12-01 19:34:02 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4774275d950261bf9ef99c55b326979298b5c558
Cr-Commit-Position: refs/heads/master@{#435677}

Powered by Google App Engine
This is Rietveld 408576698