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

Side by Side Diff: third_party/WebKit/Source/core/testing/DummyPageHolder.cpp

Issue 2258523006: Convert Settings::rootLayerScrolls to RuntimeEnabledFeatures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add RAII-style helper to toggle REF. Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "core/frame/LocalFrame.h" 36 #include "core/frame/LocalFrame.h"
37 #include "core/frame/Settings.h" 37 #include "core/frame/Settings.h"
38 #include "core/frame/VisualViewport.h" 38 #include "core/frame/VisualViewport.h"
39 #include "core/loader/EmptyClients.h" 39 #include "core/loader/EmptyClients.h"
40 #include "wtf/Assertions.h" 40 #include "wtf/Assertions.h"
41 #include "wtf/PtrUtil.h" 41 #include "wtf/PtrUtil.h"
42 #include <memory> 42 #include <memory>
43 43
44 namespace blink { 44 namespace blink {
45 45
46 void RootLayerScrollsFrameSettingOverride(Settings& settings)
47 {
48 settings.setRootLayerScrolls(true);
49 }
50
51 std::unique_ptr<DummyPageHolder> DummyPageHolder::create( 46 std::unique_ptr<DummyPageHolder> DummyPageHolder::create(
52 const IntSize& initialViewSize, 47 const IntSize& initialViewSize,
53 Page::PageClients* pageClients, 48 Page::PageClients* pageClients,
54 FrameLoaderClient* frameLoaderClient, 49 FrameLoaderClient* frameLoaderClient,
55 FrameSettingOverrideFunction settingOverrider) { 50 FrameSettingOverrideFunction settingOverrider) {
56 return wrapUnique(new DummyPageHolder(initialViewSize, pageClients, frameLoa derClient, settingOverrider)); 51 return wrapUnique(new DummyPageHolder(initialViewSize, pageClients, frameLoa derClient, settingOverrider));
57 } 52 }
58 53
59 DummyPageHolder::DummyPageHolder( 54 DummyPageHolder::DummyPageHolder(
60 const IntSize& initialViewSize, 55 const IntSize& initialViewSize,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 { 106 {
112 return *m_frame->view(); 107 return *m_frame->view();
113 } 108 }
114 109
115 Document& DummyPageHolder::document() const 110 Document& DummyPageHolder::document() const
116 { 111 {
117 return *m_frame->domWindow()->document(); 112 return *m_frame->domWindow()->document();
118 } 113 }
119 114
120 } // namespace blink 115 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/DummyPageHolder.h ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698