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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2285253003: Move TopDocumentRootScrollerController to a separate object on FrameHost (Closed)
Patch Set: 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #include "core/page/DragController.h" 80 #include "core/page/DragController.h"
81 #include "core/page/DragData.h" 81 #include "core/page/DragData.h"
82 #include "core/page/DragSession.h" 82 #include "core/page/DragSession.h"
83 #include "core/page/FocusController.h" 83 #include "core/page/FocusController.h"
84 #include "core/page/FrameTree.h" 84 #include "core/page/FrameTree.h"
85 #include "core/page/Page.h" 85 #include "core/page/Page.h"
86 #include "core/page/PagePopupClient.h" 86 #include "core/page/PagePopupClient.h"
87 #include "core/page/PointerLockController.h" 87 #include "core/page/PointerLockController.h"
88 #include "core/page/ScopedPageLoadDeferrer.h" 88 #include "core/page/ScopedPageLoadDeferrer.h"
89 #include "core/page/TouchDisambiguation.h" 89 #include "core/page/TouchDisambiguation.h"
90 #include "core/page/scrolling/RootScrollerController.h" 90 #include "core/page/scrolling/TopDocumentRootScrollerController.h"
91 #include "core/paint/PaintLayer.h" 91 #include "core/paint/PaintLayer.h"
92 #include "core/timing/DOMWindowPerformance.h" 92 #include "core/timing/DOMWindowPerformance.h"
93 #include "core/timing/Performance.h" 93 #include "core/timing/Performance.h"
94 #include "modules/accessibility/AXObject.h" 94 #include "modules/accessibility/AXObject.h"
95 #include "modules/accessibility/AXObjectCacheImpl.h" 95 #include "modules/accessibility/AXObjectCacheImpl.h"
96 #include "modules/credentialmanager/CredentialManagerClient.h" 96 #include "modules/credentialmanager/CredentialManagerClient.h"
97 #include "modules/encryptedmedia/MediaKeysController.h" 97 #include "modules/encryptedmedia/MediaKeysController.h"
98 #include "modules/storage/StorageNamespaceController.h" 98 #include "modules/storage/StorageNamespaceController.h"
99 #include "modules/webgl/WebGLRenderingContext.h" 99 #include "modules/webgl/WebGLRenderingContext.h"
100 #include "platform/ContextMenu.h" 100 #include "platform/ContextMenu.h"
(...skipping 4115 matching lines...) Expand 10 before | Expand all | Expand 10 after
4216 4216
4217 if (!page()->mainFrame() || !page()->mainFrame()->isLocalFrame()) 4217 if (!page()->mainFrame() || !page()->mainFrame()->isLocalFrame())
4218 return; 4218 return;
4219 4219
4220 Document* document = page()->deprecatedLocalMainFrame()->document(); 4220 Document* document = page()->deprecatedLocalMainFrame()->document();
4221 4221
4222 DCHECK(document); 4222 DCHECK(document);
4223 4223
4224 // Get the outer viewport scroll layer. 4224 // Get the outer viewport scroll layer.
4225 GraphicsLayer* layoutViewportScrollLayer = 4225 GraphicsLayer* layoutViewportScrollLayer =
4226 document->rootScrollerController()->rootScrollerLayer(); 4226 page()->frameHost().globalRootScrollerController().rootScrollerLayer();
4227 WebLayer* layoutViewportWebLayer = layoutViewportScrollLayer 4227 WebLayer* layoutViewportWebLayer = layoutViewportScrollLayer
4228 ? layoutViewportScrollLayer->platformLayer() 4228 ? layoutViewportScrollLayer->platformLayer()
4229 : nullptr; 4229 : nullptr;
4230 4230
4231 VisualViewport& visualViewport = page()->frameHost().visualViewport(); 4231 VisualViewport& visualViewport = page()->frameHost().visualViewport();
4232 4232
4233 // TODO(bokan): This was moved here from when registerViewportLayers was a 4233 // TODO(bokan): This was moved here from when registerViewportLayers was a
4234 // part of VisualViewport and maybe doesn't belong here. See comment inside 4234 // part of VisualViewport and maybe doesn't belong here. See comment inside
4235 // the mehtod. 4235 // the mehtod.
4236 visualViewport.setScrollLayerOnScrollbars(layoutViewportWebLayer); 4236 visualViewport.setScrollLayerOnScrollbars(layoutViewportWebLayer);
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
4605 return nullptr; 4605 return nullptr;
4606 return focusedFrame; 4606 return focusedFrame;
4607 } 4607 }
4608 4608
4609 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const 4609 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const
4610 { 4610 {
4611 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4611 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4612 } 4612 }
4613 4613
4614 } // namespace blink 4614 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698