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

Issue 14999005: Fix RenderLayer::collectLayers logic bug. (Closed)

Created:
7 years, 7 months ago by hartmanng
Modified:
7 years, 6 months ago
CC:
blink-reviews, jchaffraix+rendering, Ian Vollick
Visibility:
Public.

Description

Fix RenderLayer::collectLayers logic bug. In collectLayers, if a layer is normal flow only, we will not add it to the z-order lists. The trouble is that RenderLayer::shouldBeNormalFlowOnly depends on RenderLayer::needsCompositedScrolling. This means that the result of collectLayers depends on the opt-in decision of other layers, something which must not happen: when we are determining opt-in, we must never depend on the opt-in decision for another layer. This CL makes this function opt-in agnostic when it needs to be. R=jchaffraix BUG=238282 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151665

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 6

Patch Set 3 : Addressing review comments #

Total comments: 7

Patch Set 4 : Addressing 2nd review #

Total comments: 2

Patch Set 5 : addressing Julien's comments #

Total comments: 4

Patch Set 6 : nits + rebase for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -65 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 3 4 5 3 chunks +8 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 7 chunks +51 lines, -53 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
hartmanng
Hey Julien, this patch fixes the logic issue we uncovered in https://codereview.chromium.org/13427009/, and re-enables the ...
7 years, 7 months ago (2013-05-06 21:42:42 UTC) #1
shawnsingh
Glenn suggested I could also take a look here. So in addition to whatever Julien ...
7 years, 7 months ago (2013-05-07 00:47:42 UTC) #2
shawnsingh
On 2013/05/07 00:47:42, shawnsingh wrote: > Can you please describe the > exact bug that ...
7 years, 7 months ago (2013-05-07 00:50:03 UTC) #3
hartmanng
Thanks for the comments Shawn! I was away much of last week, so I've been ...
7 years, 7 months ago (2013-05-13 19:27:05 UTC) #4
shawnsingh
Whew... this one is a brain twister for me. Comments below. https://codereview.chromium.org/14999005/diff/18001/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): ...
7 years, 7 months ago (2013-05-16 09:47:54 UTC) #5
shawnsingh
https://codereview.chromium.org/14999005/diff/18001/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/14999005/diff/18001/Source/core/rendering/RenderLayer.cpp#newcode5780 Source/core/rendering/RenderLayer.cpp:5780: const bool shouldNeedCompositedScrolling = ((acceleratedCompositingForOverflowScrollEnabledMode == AcceleratedCompositingForOverflowScrollDisabled) || !needsCompositedScrolling()); ...
7 years, 7 months ago (2013-05-16 09:53:23 UTC) #6
hartmanng
Thanks again Shawn. I think this review helped clean things up a bit and make ...
7 years, 7 months ago (2013-05-20 15:09:10 UTC) #7
shawnsingh
Oh, I see now that my "experiment 2" isn't necessary. This unofficially looks good to ...
7 years, 7 months ago (2013-05-20 17:40:58 UTC) #8
hartmanng
Thanks! In that case, I think this patch is ready to move forward to jchaffraix ...
7 years, 7 months ago (2013-05-20 20:45:45 UTC) #9
Julien - ping for review
https://codereview.chromium.org/14999005/diff/28001/Source/core/rendering/RenderLayer.h File Source/core/rendering/RenderLayer.h (right): https://codereview.chromium.org/14999005/diff/28001/Source/core/rendering/RenderLayer.h#newcode1039 Source/core/rendering/RenderLayer.h:1039: bool shouldBeNormalFlowOnly(bool canNeedCompositedScrolling = true) const; Really not a ...
7 years, 6 months ago (2013-05-30 22:23:07 UTC) #10
hartmanng
Thanks, I addressed your comment (and uploaded the new patch), PTAL https://codereview.chromium.org/14999005/diff/28001/Source/core/rendering/RenderLayer.h File Source/core/rendering/RenderLayer.h (right): ...
7 years, 6 months ago (2013-05-31 13:55:41 UTC) #11
Julien - ping for review
lgtm https://codereview.chromium.org/14999005/diff/37001/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/14999005/diff/37001/Source/core/rendering/RenderLayer.cpp#newcode5730 Source/core/rendering/RenderLayer.cpp:5730: bool RenderLayer::shouldBeNormalFlowOnlyWithoutCompositedScrolling() const Nit: I would name it ...
7 years, 6 months ago (2013-06-03 14:41:47 UTC) #12
hartmanng
Thanks! https://codereview.chromium.org/14999005/diff/37001/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/14999005/diff/37001/Source/core/rendering/RenderLayer.cpp#newcode5730 Source/core/rendering/RenderLayer.cpp:5730: bool RenderLayer::shouldBeNormalFlowOnlyWithoutCompositedScrolling() const On 2013/06/03 14:41:47, Julien Chaffraix ...
7 years, 6 months ago (2013-06-03 14:54:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hartmanng@chromium.org/14999005/45001
7 years, 6 months ago (2013-06-03 14:54:42 UTC) #14
commit-bot: I haz the power
7 years, 6 months ago (2013-06-03 16:13:49 UTC) #15
Message was sent while issue was closed.
Change committed as 151665

Powered by Google App Engine
This is Rietveld 408576698