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