| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |