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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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 R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 } 519 }
520 520
521 void Page::purgeMemory(DeviceKind deviceKind) 521 void Page::purgeMemory(DeviceKind deviceKind)
522 { 522 {
523 if (deviceKind == DeviceKind::LowEnd) 523 if (deviceKind == DeviceKind::LowEnd)
524 memoryCache()->pruneAll(); 524 memoryCache()->pruneAll();
525 } 525 }
526 526
527 DEFINE_TRACE(Page) 527 DEFINE_TRACE(Page)
528 { 528 {
529 #if ENABLE(OILPAN)
530 visitor->trace(m_animator); 529 visitor->trace(m_animator);
531 visitor->trace(m_autoscrollController); 530 visitor->trace(m_autoscrollController);
532 visitor->trace(m_chromeClient); 531 visitor->trace(m_chromeClient);
533 visitor->trace(m_dragCaretController); 532 visitor->trace(m_dragCaretController);
534 visitor->trace(m_dragController); 533 visitor->trace(m_dragController);
535 visitor->trace(m_focusController); 534 visitor->trace(m_focusController);
536 visitor->trace(m_contextMenuController); 535 visitor->trace(m_contextMenuController);
537 visitor->trace(m_pointerLockController); 536 visitor->trace(m_pointerLockController);
538 visitor->trace(m_scrollingCoordinator); 537 visitor->trace(m_scrollingCoordinator);
539 visitor->trace(m_undoStack); 538 visitor->trace(m_undoStack);
540 visitor->trace(m_mainFrame); 539 visitor->trace(m_mainFrame);
541 visitor->trace(m_validationMessageClient); 540 visitor->trace(m_validationMessageClient);
542 visitor->trace(m_multisamplingChangedObservers); 541 visitor->trace(m_multisamplingChangedObservers);
543 visitor->trace(m_frameHost); 542 visitor->trace(m_frameHost);
544 visitor->trace(m_memoryPurgeController); 543 visitor->trace(m_memoryPurgeController);
545 HeapSupplementable<Page>::trace(visitor); 544 Supplementable<Page>::trace(visitor);
546 #endif
547 PageLifecycleNotifier::trace(visitor); 545 PageLifecycleNotifier::trace(visitor);
548 MemoryPurgeClient::trace(visitor); 546 MemoryPurgeClient::trace(visitor);
549 } 547 }
550 548
551 void Page::layerTreeViewInitialized(WebLayerTreeView& layerTreeView) 549 void Page::layerTreeViewInitialized(WebLayerTreeView& layerTreeView)
552 { 550 {
553 if (scrollingCoordinator()) 551 if (scrollingCoordinator())
554 scrollingCoordinator()->layerTreeViewInitialized(layerTreeView); 552 scrollingCoordinator()->layerTreeViewInitialized(layerTreeView);
555 } 553 }
556 554
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 , editorClient(nullptr) 601 , editorClient(nullptr)
604 , dragClient(nullptr) 602 , dragClient(nullptr)
605 , spellCheckerClient(nullptr) 603 , spellCheckerClient(nullptr)
606 { 604 {
607 } 605 }
608 606
609 Page::PageClients::~PageClients() 607 Page::PageClients::~PageClients()
610 { 608 {
611 } 609 }
612 610
613 template class CORE_TEMPLATE_EXPORT HeapSupplement<Page>; 611 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
614 612
615 } // namespace blink 613 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | third_party/WebKit/Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698