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

Issue 706603002: Cleanup: Use foreground rect in paintChildClippingMaskForFragments(). (Closed)

Created:
6 years, 1 month ago by mstensho (USE GERRIT)
Modified:
6 years, 1 month ago
Reviewers:
chrishtr
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Cleanup: Use foreground rect in paintChildClippingMaskForFragments(). The clip rectangle was based on the foreground rectangle, while we passed the background rectangle to PaintInfo. Be consistent and use the foreground rectangle in both cases. There was also a comment about skipping ourselves for border radius clipping, although we did include ourselves. Removed the comment. No behavioral changes intended, but added a test that would fail if we had gone for the background rect instead of the foreground rect. R=chrishtr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184931

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
A LayoutTests/fast/borders/border-radius-with-composited-child.html View 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/borders/border-radius-with-composited-child-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/paint/LayerPainter.cpp View 1 chunk +2 lines, -2 lines 4 comments Download

Messages

Total messages: 10 (1 generated)
mstensho (USE GERRIT)
6 years, 1 month ago (2014-11-05 13:11:54 UTC) #1
mstensho (USE GERRIT)
Oh, and the test is very black in order to avoid anti-aliasing differences between the ...
6 years, 1 month ago (2014-11-05 13:14:52 UTC) #2
chrishtr
https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp#newcode829 Source/core/paint/LayerPainter.cpp:829: PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.foregroundRect.rect()), PaintPhaseClippingMask, PaintBehaviorNormal, paintingRootForRenderer, 0, localPaintingInfo.rootLayer->renderer()); The ...
6 years, 1 month ago (2014-11-06 02:03:04 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp#newcode829 Source/core/paint/LayerPainter.cpp:829: PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.foregroundRect.rect()), PaintPhaseClippingMask, PaintBehaviorNormal, paintingRootForRenderer, 0, localPaintingInfo.rootLayer->renderer()); On ...
6 years, 1 month ago (2014-11-06 14:06:41 UTC) #4
chrishtr
https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp#newcode829 Source/core/paint/LayerPainter.cpp:829: PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.foregroundRect.rect()), PaintPhaseClippingMask, PaintBehaviorNormal, paintingRootForRenderer, 0, localPaintingInfo.rootLayer->renderer()); On ...
6 years, 1 month ago (2014-11-06 18:10:02 UTC) #5
mstensho (USE GERRIT)
https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/706603002/diff/1/Source/core/paint/LayerPainter.cpp#newcode829 Source/core/paint/LayerPainter.cpp:829: PaintInfo paintInfo(context, pixelSnappedIntRect(fragment.foregroundRect.rect()), PaintPhaseClippingMask, PaintBehaviorNormal, paintingRootForRenderer, 0, localPaintingInfo.rootLayer->renderer()); On ...
6 years, 1 month ago (2014-11-06 19:06:08 UTC) #6
chrishtr
lgtm
6 years, 1 month ago (2014-11-06 21:20:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706603002/1
6 years, 1 month ago (2014-11-06 21:20:54 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-06 21:22:49 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 184931

Powered by Google App Engine
This is Rietveld 408576698