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

Issue 666493002: Remove updatePaintingInfoForFragments() and per-fragment shouldPaintContent flag. (Closed)

Created:
6 years, 2 months ago by mstensho (USE GERRIT)
Modified:
6 years, 1 month ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Remove updatePaintingInfoForFragments() and per-fragment shouldPaintContent flag. It seems that all it did was to erroneously make us skip fragments. It intersected with layer bounds, which don't include layer overflow. Before we create the fragments in RenderMultiColumnSet, we carefully intersect with everything relevant anyway. So rather than fixing the buggy code, just remove it. This means that there's no need for a per-fragment shouldPaintContent flag. anymore. BUG=359877 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184562

Patch Set 1 #

Total comments: 3

Patch Set 2 : Need to keep the intersection check for non-multicol. #

Patch Set 3 : rebase master #

Patch Set 4 : rebase master #

Total comments: 7

Patch Set 5 : Code review. Introduce LayerPainter::atLeastOneFragmentIntersectsDamageRect() to minimize diff. #

Total comments: 4

Patch Set 6 : Code review. Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -31 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/multicol/composited-with-overflow-in-next-column.html View 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/composited-with-overflow-in-next-column-expected.html View 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/paint/LayerPainter.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/LayerPainter.cpp View 1 2 3 4 5 8 chunks +23 lines, -24 lines 0 comments Download
M Source/core/rendering/LayerFragment.h View 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (2 generated)
mstensho (USE GERRIT)
6 years, 2 months ago (2014-10-17 15:29:09 UTC) #2
chrishtr
https://codereview.chromium.org/666493002/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (left): https://codereview.chromium.org/666493002/diff/1/Source/core/paint/LayerPainter.cpp#oldcode432 Source/core/paint/LayerPainter.cpp:432: fragment.shouldPaintContent &= m_renderLayer.intersectsDamageRect(fragment.layerBounds, fragment.backgroundRect.rect(), localPaintingInfo.rootLayer, &newOffsetFromRoot); For the case ...
6 years, 2 months ago (2014-10-17 19:05:59 UTC) #3
mstensho (USE GERRIT)
https://codereview.chromium.org/666493002/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (left): https://codereview.chromium.org/666493002/diff/1/Source/core/paint/LayerPainter.cpp#oldcode432 Source/core/paint/LayerPainter.cpp:432: fragment.shouldPaintContent &= m_renderLayer.intersectsDamageRect(fragment.layerBounds, fragment.backgroundRect.rect(), localPaintingInfo.rootLayer, &newOffsetFromRoot); On 2014/10/17 19:05:59, ...
6 years, 2 months ago (2014-10-17 20:06:50 UTC) #4
chrishtr
Ok. An approach that works for 1 or more than 1 fragment would be great, ...
6 years, 2 months ago (2014-10-17 20:35:31 UTC) #5
mstensho (USE GERRIT)
On 2014/10/17 20:35:31, chrishtr wrote: > Ok. An approach that works for 1 or more ...
6 years, 2 months ago (2014-10-17 21:03:07 UTC) #6
mstensho (USE GERRIT)
https://codereview.chromium.org/666493002/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (left): https://codereview.chromium.org/666493002/diff/1/Source/core/paint/LayerPainter.cpp#oldcode432 Source/core/paint/LayerPainter.cpp:432: fragment.shouldPaintContent &= m_renderLayer.intersectsDamageRect(fragment.layerBounds, fragment.backgroundRect.rect(), localPaintingInfo.rootLayer, &newOffsetFromRoot); On 2014/10/17 20:06:50, ...
6 years, 2 months ago (2014-10-20 08:16:02 UTC) #7
mstensho (USE GERRIT)
ping
6 years, 2 months ago (2014-10-22 16:36:46 UTC) #8
chrishtr
https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (left): https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp#oldcode428 Source/core/paint/LayerPainter.cpp:428: for (size_t i = 0; i < fragments.size(); ++i) ...
6 years, 1 month ago (2014-10-28 18:47:42 UTC) #9
chrishtr
FYI sorry for the delay, was on vacation.
6 years, 1 month ago (2014-10-28 18:47:50 UTC) #10
mstensho (USE GERRIT)
On 2014/10/28 18:47:50, chrishtr wrote: > FYI sorry for the delay, was on vacation. No ...
6 years, 1 month ago (2014-10-28 19:14:31 UTC) #11
mstensho (USE GERRIT)
https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (left): https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp#oldcode428 Source/core/paint/LayerPainter.cpp:428: for (size_t i = 0; i < fragments.size(); ++i) ...
6 years, 1 month ago (2014-10-28 20:08:21 UTC) #12
chrishtr
https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (left): https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp#oldcode428 Source/core/paint/LayerPainter.cpp:428: for (size_t i = 0; i < fragments.size(); ++i) ...
6 years, 1 month ago (2014-10-28 20:18:25 UTC) #13
mstensho (USE GERRIT)
https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (left): https://codereview.chromium.org/666493002/diff/60001/Source/core/paint/LayerPainter.cpp#oldcode428 Source/core/paint/LayerPainter.cpp:428: for (size_t i = 0; i < fragments.size(); ++i) ...
6 years, 1 month ago (2014-10-28 21:33:20 UTC) #14
chrishtr
https://codereview.chromium.org/666493002/diff/80001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/666493002/diff/80001/Source/core/paint/LayerPainter.cpp#newcode427 Source/core/paint/LayerPainter.cpp:427: return true; // The fragments created have already been ...
6 years, 1 month ago (2014-10-28 21:44:46 UTC) #15
mstensho (USE GERRIT)
https://codereview.chromium.org/666493002/diff/80001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/666493002/diff/80001/Source/core/paint/LayerPainter.cpp#newcode427 Source/core/paint/LayerPainter.cpp:427: return true; // The fragments created have already been ...
6 years, 1 month ago (2014-10-28 22:56:49 UTC) #16
chrishtr
lgtm
6 years, 1 month ago (2014-10-28 23:47:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/666493002/100001
6 years, 1 month ago (2014-10-29 05:40:10 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 05:43:45 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as 184562

Powered by Google App Engine
This is Rietveld 408576698