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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2911103002: Revert of Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Created 3 years, 6 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All
3 * Rights Reserved. 3 * Rights Reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "core/page/ValidationMessageClient.h" 54 #include "core/page/ValidationMessageClient.h"
55 #include "core/page/scrolling/OverscrollController.h" 55 #include "core/page/scrolling/OverscrollController.h"
56 #include "core/page/scrolling/ScrollingCoordinator.h" 56 #include "core/page/scrolling/ScrollingCoordinator.h"
57 #include "core/page/scrolling/TopDocumentRootScrollerController.h" 57 #include "core/page/scrolling/TopDocumentRootScrollerController.h"
58 #include "core/paint/PaintLayer.h" 58 #include "core/paint/PaintLayer.h"
59 #include "core/probe/CoreProbes.h" 59 #include "core/probe/CoreProbes.h"
60 #include "platform/WebFrameScheduler.h" 60 #include "platform/WebFrameScheduler.h"
61 #include "platform/graphics/GraphicsLayer.h" 61 #include "platform/graphics/GraphicsLayer.h"
62 #include "platform/loader/fetch/ResourceFetcher.h" 62 #include "platform/loader/fetch/ResourceFetcher.h"
63 #include "platform/plugins/PluginData.h" 63 #include "platform/plugins/PluginData.h"
64 #include "platform/scroll/SmoothScrollSequencer.h"
65 #include "public/platform/Platform.h" 64 #include "public/platform/Platform.h"
66 65
67 namespace blink { 66 namespace blink {
68 67
69 // Set of all live pages; includes internal Page objects that are 68 // Set of all live pages; includes internal Page objects that are
70 // not observable from scripts. 69 // not observable from scripts.
71 static Page::PageSet& AllPages() { 70 static Page::PageSet& AllPages() {
72 DEFINE_STATIC_LOCAL(Page::PageSet, pages, ()); 71 DEFINE_STATIC_LOCAL(Page::PageSet, pages, ());
73 return pages; 72 return pages;
74 } 73 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 if (!scrolling_coordinator_ && settings_->GetAcceleratedCompositingEnabled()) 165 if (!scrolling_coordinator_ && settings_->GetAcceleratedCompositingEnabled())
167 scrolling_coordinator_ = ScrollingCoordinator::Create(this); 166 scrolling_coordinator_ = ScrollingCoordinator::Create(this);
168 167
169 return scrolling_coordinator_.Get(); 168 return scrolling_coordinator_.Get();
170 } 169 }
171 170
172 PageScaleConstraintsSet& Page::GetPageScaleConstraintsSet() { 171 PageScaleConstraintsSet& Page::GetPageScaleConstraintsSet() {
173 return *page_scale_constraints_set_; 172 return *page_scale_constraints_set_;
174 } 173 }
175 174
176 SmoothScrollSequencer* Page::GetSmoothScrollSequencer() {
177 if (!smooth_scroll_sequencer_)
178 smooth_scroll_sequencer_ = new SmoothScrollSequencer();
179
180 return smooth_scroll_sequencer_.Get();
181 }
182
183 const PageScaleConstraintsSet& Page::GetPageScaleConstraintsSet() const { 175 const PageScaleConstraintsSet& Page::GetPageScaleConstraintsSet() const {
184 return *page_scale_constraints_set_; 176 return *page_scale_constraints_set_;
185 } 177 }
186 178
187 BrowserControls& Page::GetBrowserControls() { 179 BrowserControls& Page::GetBrowserControls() {
188 return *browser_controls_; 180 return *browser_controls_;
189 } 181 }
190 182
191 const BrowserControls& Page::GetBrowserControls() const { 183 const BrowserControls& Page::GetBrowserControls() const {
192 return *browser_controls_; 184 return *browser_controls_;
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 DEFINE_TRACE(Page) { 619 DEFINE_TRACE(Page) {
628 visitor->Trace(animator_); 620 visitor->Trace(animator_);
629 visitor->Trace(autoscroll_controller_); 621 visitor->Trace(autoscroll_controller_);
630 visitor->Trace(chrome_client_); 622 visitor->Trace(chrome_client_);
631 visitor->Trace(drag_caret_); 623 visitor->Trace(drag_caret_);
632 visitor->Trace(drag_controller_); 624 visitor->Trace(drag_controller_);
633 visitor->Trace(focus_controller_); 625 visitor->Trace(focus_controller_);
634 visitor->Trace(context_menu_controller_); 626 visitor->Trace(context_menu_controller_);
635 visitor->Trace(pointer_lock_controller_); 627 visitor->Trace(pointer_lock_controller_);
636 visitor->Trace(scrolling_coordinator_); 628 visitor->Trace(scrolling_coordinator_);
637 visitor->Trace(smooth_scroll_sequencer_);
638 visitor->Trace(browser_controls_); 629 visitor->Trace(browser_controls_);
639 visitor->Trace(console_message_storage_); 630 visitor->Trace(console_message_storage_);
640 visitor->Trace(event_handler_registry_); 631 visitor->Trace(event_handler_registry_);
641 visitor->Trace(global_root_scroller_controller_); 632 visitor->Trace(global_root_scroller_controller_);
642 visitor->Trace(visual_viewport_); 633 visitor->Trace(visual_viewport_);
643 visitor->Trace(overscroll_controller_); 634 visitor->Trace(overscroll_controller_);
644 visitor->Trace(main_frame_); 635 visitor->Trace(main_frame_);
645 visitor->Trace(plugin_data_); 636 visitor->Trace(plugin_data_);
646 visitor->Trace(validation_message_client_); 637 visitor->Trace(validation_message_client_);
647 visitor->Trace(use_counter_); 638 visitor->Trace(use_counter_);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 : chrome_client(nullptr), 679 : chrome_client(nullptr),
689 context_menu_client(nullptr), 680 context_menu_client(nullptr),
690 editor_client(nullptr), 681 editor_client(nullptr),
691 spell_checker_client(nullptr) {} 682 spell_checker_client(nullptr) {}
692 683
693 Page::PageClients::~PageClients() {} 684 Page::PageClients::~PageClients() {}
694 685
695 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 686 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
696 687
697 } // namespace blink 688 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698