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

Issue 1224893004: Turn FrameView's paintBehavior into a real global (Closed)

Created:
5 years, 5 months ago by Julien - ping for review
Modified:
5 years, 4 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-rendering, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Turn FrameView's paintBehavior into a real global The code was super confusing as the flags were thought as a special PaintBehavior instead of a different beast. Because PaintBehavior is not propagated down the Frame tree, some awkward propagation had to happen (we only propagated some of the flags). This change turns the 2 behaviors into their own enum, that is reserved for global operations. PaintBehavior and LayerPaintingFlags keep their meanings as subtree operations and to keep track of which paint operations were applied. Not changed as part of this is all the callers that used to use PaintBehavior to check one of the 2 enums. I hope to pass down the global operation flag in a follow-up change.

Patch Set 1 #

Patch Set 2 : Fixed some #ifdef Android code. #

Patch Set 3 : Fixed unused variable warning. #

Total comments: 11

Patch Set 4 : Improved change after the reviews. Still fails on Android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -50 lines) Patch
M Source/core/frame/FrameView.h View 1 3 chunks +0 lines, -4 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 chunks +0 lines, -11 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M Source/core/layout/LayoutObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/BoxPainter.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerPainter.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/paint/FramePainter.cpp View 1 2 3 3 chunks +5 lines, -12 lines 0 comments Download
M Source/core/paint/InlineFlowBoxPainter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/PaintPhase.h View 1 2 3 2 chunks +20 lines, -2 lines 0 comments Download
M Source/core/paint/PaintPhase.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/paint/VideoPainter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Julien - ping for review
Simplification change in painting/. I think the direction is good but would like some dissenting ...
5 years, 5 months ago (2015-07-07 00:41:54 UTC) #2
leviw_travelin_and_unemployed
I definitely support breaking this out of PaintBehaviorFlags. Made some notes before the PDR hammer ...
5 years, 5 months ago (2015-07-07 20:33:16 UTC) #3
pdr.
I like this patch. I don't really understand GlobalPaintSelectionOnly. Is it needed? The global approach ...
5 years, 5 months ago (2015-07-07 21:24:34 UTC) #4
leviw_travelin_and_unemployed
https://codereview.chromium.org/1224893004/diff/40001/Source/core/paint/PaintPhase.h File Source/core/paint/PaintPhase.h (right): https://codereview.chromium.org/1224893004/diff/40001/Source/core/paint/PaintPhase.h#newcode76 Source/core/paint/PaintPhase.h:76: GlobalPaintSelectionOnly = 1 << 0, We should probably rename ...
5 years, 5 months ago (2015-07-07 21:39:46 UTC) #5
Julien - ping for review
On 2015/07/07 at 21:24:34, pdr wrote: > I like this patch. > > I don't ...
5 years, 5 months ago (2015-07-07 23:54:45 UTC) #6
Julien - ping for review
It seems like Android is going to force me into doing the refactoring upfront as ...
5 years, 5 months ago (2015-07-08 01:16:30 UTC) #7
leviw_travelin_and_unemployed
On 2015/07/08 at 01:16:30, jchaffraix wrote: > It seems like Android is going to force ...
5 years, 5 months ago (2015-07-08 19:30:25 UTC) #8
leviw_travelin_and_unemployed
On 2015/07/08 at 19:30:25, leviw wrote: > On 2015/07/08 at 01:16:30, jchaffraix wrote: > > ...
5 years, 5 months ago (2015-07-08 19:32:41 UTC) #9
leviw_travelin_and_unemployed
Looking at the patch, I think this is an improvement as is. LGTM. I'm happy ...
5 years, 5 months ago (2015-07-08 19:33:37 UTC) #10
pdr.
Julien and I talked offline and he's going to switch to putting the data in ...
5 years, 5 months ago (2015-07-08 21:09:48 UTC) #11
chrishtr
It's not good to introduce new global variables. Is it really so onerous to pass ...
5 years, 5 months ago (2015-07-12 13:56:22 UTC) #13
Julien - ping for review
5 years, 4 months ago (2015-07-29 18:33:27 UTC) #14
On 2015/07/12 at 13:56:22, chrishtr wrote:
> It's not good to introduce new global variables. Is it really so onerous to
pass down this state somehow?

This approach was superseeded by passing down the state (and refactoring our
flags as I touched this code). See crbug.com/509073 for details.

Powered by Google App Engine
This is Rietveld 408576698