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

Issue 2258523006: Convert Settings::rootLayerScrolls to RuntimeEnabledFeatures (Closed)

Created:
4 years, 4 months ago by trchen
Modified:
4 years, 3 months ago
Reviewers:
pdr., esprehn, skobes
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dshwang, eae+blinkwatch, jam, jchaffraix+rendering, kenneth.christiansen, kinuko+watch, leviw+renderwatch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert Settings::rootLayerScrolls to RuntimeEnabledFeatures Settings are sometimes difficult to get access to, depend on the context. Also we don't find any use cases to applying different rootLayerScrolls value to individual frames. Migrating to RuntimeEnabledFeatures to simplify code. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/1d1f13a9f7961b2b891b858c769dc7f2b787e8f8 Cr-Commit-Position: refs/heads/master@{#414804}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase & fix mistake #

Total comments: 7

Patch Set 3 : Add RAII-style helper to toggle REF. Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -389 lines) Patch
M content/child/runtime_features.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 9 chunks +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameViewTest.cpp View 1 2 4 chunks +9 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 3 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/SnapCoordinatorTest.cpp View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h View 1 2 3 chunks +5 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp View 1 2 1 chunk +14 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 6 chunks +6 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 16 chunks +24 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyPageHolder.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyPageHolder.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/testing/RuntimeEnabledFeaturesTestHelpers.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp View 1 2 5 chunks +11 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 chunks +9 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 178 chunks +188 lines, -196 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 41 (26 generated)
trchen
Pretty mechanical. We can wait after other conflicting changes landed.
4 years, 4 months ago (2016-08-20 04:18:51 UTC) #5
skobes
lgtm https://codereview.chromium.org/2258523006/diff/1/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2258523006/diff/1/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode72 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:72: RuntimeEnabledFeatures::setRootLayerScrollingEnabled(GetParam()); Why is this in TearDown?
4 years, 4 months ago (2016-08-21 14:21:21 UTC) #8
pdr.
Nice! This'll make it much easier to make SPV2 require RLS.
4 years, 4 months ago (2016-08-22 18:02:33 UTC) #9
trchen
https://codereview.chromium.org/2258523006/diff/1/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2258523006/diff/1/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode72 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:72: RuntimeEnabledFeatures::setRootLayerScrollingEnabled(GetParam()); On 2016/08/21 14:21:21, skobes wrote: > Why is ...
4 years, 4 months ago (2016-08-24 01:01:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2258523006/20001
4 years, 4 months ago (2016-08-24 08:22:15 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/244743)
4 years, 4 months ago (2016-08-24 08:30:14 UTC) #19
trchen
Whoops, missing owners. +pdr: third_party/WebKit/Source/platform/ third_party/WebKit/Source/web/ third_party/WebKit/public/web/ +esprehn: content/child/ content/renderer/
4 years, 3 months ago (2016-08-24 21:18:54 UTC) #21
pdr.
On 2016/08/24 at 21:18:54, trchen wrote: > Whoops, missing owners. > > +pdr: > third_party/WebKit/Source/platform/ ...
4 years, 3 months ago (2016-08-24 22:10:02 UTC) #22
esprehn
What's the reason for this? It has us doing copy-pasta all over for the settings? ...
4 years, 3 months ago (2016-08-25 23:59:24 UTC) #25
trchen
https://codereview.chromium.org/2258523006/diff/20001/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h File third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h (left): https://codereview.chromium.org/2258523006/diff/20001/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h#oldcode79 third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h:79: bool m_originalSlimmingPaintInvalidationEnabled; On 2016/08/25 23:59:24, esprehn wrote: > is ...
4 years, 3 months ago (2016-08-26 00:15:11 UTC) #27
trchen
REF test helpers added.
4 years, 3 months ago (2016-08-26 02:15:06 UTC) #28
esprehn
lgtm
4 years, 3 months ago (2016-08-26 04:46:49 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2258523006/40001
4 years, 3 months ago (2016-08-26 20:56:20 UTC) #37
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-26 21:05:19 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 21:07:08 UTC) #41
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1d1f13a9f7961b2b891b858c769dc7f2b787e8f8
Cr-Commit-Position: refs/heads/master@{#414804}

Powered by Google App Engine
This is Rietveld 408576698