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

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed)

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

Description

Clean up the way layout tests force elements to opt in/out of composited scrolling. Currently, we're toggling a global setting, but we should really be affecting the opt in decision for individual elements. This patch cleans that up. This is part of a larger plan to finish the opt-in checks. Here's the aggregate patch (it's getting stale, so YMMV): https://codereview.chromium.org/14741004/ The reason this patch is necessary, is that in subsequent patches, we will be reducing the number of times we update composited scrolling state; explicitly forcing a particular layer (and only one layer) to opt in or out will allow us to guarantee that the layer's state (in particular, its z-order lists) will be updated, even if we've optimized/reduced the frequency with which we update the composited scrolling state. R=hartmanng@chromium.org, jchaffraix@chromium.org BUG=None Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151433

Patch Set 1 : . #

Total comments: 10

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : Now with a tristate setting. #

Total comments: 8

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 5

Patch Set 7 : No global tristate. Use per-layer setting instead. #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -13 lines) Patch
M LayoutTests/compositing/overflow/automatically-opt-into-composited-scrolling.html View 1 2 4 5 6 3 chunks +12 lines, -4 lines 0 comments Download
M LayoutTests/compositing/overflow/build-paint-order-list-where-opt-in-decisions-can-affect-each-other.html View 1 2 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download
M LayoutTests/compositing/overflow/build-paint-order-lists.html View 1 2 4 5 6 3 chunks +12 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 3 4 5 6 7 4 chunks +31 lines, -3 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Ian Vollick
7 years, 7 months ago (2013-05-02 15:11:44 UTC) #1
hartmanng
lgtm
7 years, 7 months ago (2013-05-02 15:29:35 UTC) #2
Julien - ping for review
Just one big issue (about who enabled accelerated overflow scrolling). The rest looks fine. https://codereview.chromium.org/14858004/diff/2001/LayoutTests/compositing/overflow/build-paint-order-lists.html ...
7 years, 7 months ago (2013-05-06 22:56:58 UTC) #3
Ian Vollick
Thanks for the review! Comments have been addressed, PTAL. https://codereview.chromium.org/14858004/diff/2001/LayoutTests/compositing/overflow/build-paint-order-lists.html File LayoutTests/compositing/overflow/build-paint-order-lists.html (right): https://codereview.chromium.org/14858004/diff/2001/LayoutTests/compositing/overflow/build-paint-order-lists.html#newcode106 LayoutTests/compositing/overflow/build-paint-order-lists.html:106: ...
7 years, 7 months ago (2013-05-08 13:10:58 UTC) #4
Julien - ping for review
Sorry, I should have caught that in a previous review: you can make the Settings ...
7 years, 7 months ago (2013-05-09 22:34:34 UTC) #5
Ian Vollick
On 2013/05/09 22:34:34, Julien Chaffraix wrote: > Sorry, I should have caught that in a ...
7 years, 7 months ago (2013-05-10 15:40:00 UTC) #6
Ian Vollick
Sorry for the spam; I noticed something that breaks my previous argument. On 2013/05/10 15:40:00, ...
7 years, 7 months ago (2013-05-10 15:47:08 UTC) #7
Ian Vollick
On 2013/05/10 15:47:08, vollick wrote: > Sorry for the spam; I noticed something that breaks ...
7 years, 7 months ago (2013-05-10 19:20:47 UTC) #8
Julien - ping for review
https://codereview.chromium.org/14858004/diff/23001/Source/WebKit/chromium/src/WebSettingsImpl.cpp File Source/WebKit/chromium/src/WebSettingsImpl.cpp (right): https://codereview.chromium.org/14858004/diff/23001/Source/WebKit/chromium/src/WebSettingsImpl.cpp#newcode459 Source/WebKit/chromium/src/WebSettingsImpl.cpp:459: AcceleratedCompositingForOverflowScrollEnabledMode mode = enabled Probably worth a FIXME as ...
7 years, 7 months ago (2013-05-11 01:05:52 UTC) #9
Ian Vollick
https://codereview.chromium.org/14858004/diff/23001/Source/WebKit/chromium/src/WebSettingsImpl.cpp File Source/WebKit/chromium/src/WebSettingsImpl.cpp (right): https://codereview.chromium.org/14858004/diff/23001/Source/WebKit/chromium/src/WebSettingsImpl.cpp#newcode459 Source/WebKit/chromium/src/WebSettingsImpl.cpp:459: AcceleratedCompositingForOverflowScrollEnabledMode mode = enabled On 2013/05/11 01:05:52, Julien Chaffraix ...
7 years, 7 months ago (2013-05-11 01:32:59 UTC) #10
Julien - ping for review
LGTM but don't land without fixing the comments. https://codereview.chromium.org/14858004/diff/34006/LayoutTests/compositing/overflow/automatically-opt-into-composited-scrolling.html File LayoutTests/compositing/overflow/automatically-opt-into-composited-scrolling.html (right): https://codereview.chromium.org/14858004/diff/34006/LayoutTests/compositing/overflow/automatically-opt-into-composited-scrolling.html#newcode94 LayoutTests/compositing/overflow/automatically-opt-into-composited-scrolling.html:94: window.internals.settings.AcceleratedCompositingForOverflowScrollAlwaysOn); ...
7 years, 7 months ago (2013-05-13 20:48:56 UTC) #11
Ian Vollick
Hi, Julien. I'm sorry to ask for a re-review, but I've had to revert to ...
7 years, 7 months ago (2013-05-20 19:59:08 UTC) #12
Julien - ping for review
Sad that we can't use a tri-state so lgtm
7 years, 6 months ago (2013-05-29 19:26:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/14858004/47001
7 years, 6 months ago (2013-05-29 20:38:55 UTC) #14
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 03:26:34 UTC) #15
Message was sent while issue was closed.
Change committed as 151433

Powered by Google App Engine
This is Rietveld 408576698