| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "core/layout/TextAutosizer.h" | 42 #include "core/layout/TextAutosizer.h" |
| 43 #include "core/page/AutoscrollController.h" | 43 #include "core/page/AutoscrollController.h" |
| 44 #include "core/page/ChromeClient.h" | 44 #include "core/page/ChromeClient.h" |
| 45 #include "core/page/ContextMenuController.h" | 45 #include "core/page/ContextMenuController.h" |
| 46 #include "core/page/DragController.h" | 46 #include "core/page/DragController.h" |
| 47 #include "core/page/FocusController.h" | 47 #include "core/page/FocusController.h" |
| 48 #include "core/page/PointerLockController.h" | 48 #include "core/page/PointerLockController.h" |
| 49 #include "core/page/ValidationMessageClient.h" | 49 #include "core/page/ValidationMessageClient.h" |
| 50 #include "core/page/scrolling/ScrollingCoordinator.h" | 50 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 51 #include "core/paint/PaintLayer.h" | 51 #include "core/paint/PaintLayer.h" |
| 52 #include "core/paint/PaintTiming.h" |
| 52 #include "platform/graphics/GraphicsLayer.h" | 53 #include "platform/graphics/GraphicsLayer.h" |
| 53 #include "platform/plugins/PluginData.h" | 54 #include "platform/plugins/PluginData.h" |
| 54 #include "public/platform/Platform.h" | 55 #include "public/platform/Platform.h" |
| 55 | 56 |
| 56 namespace blink { | 57 namespace blink { |
| 57 | 58 |
| 58 // static | 59 // static |
| 59 WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<Page>>& Page::allPages() | 60 WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<Page>>& Page::allPages() |
| 60 { | 61 { |
| 61 DEFINE_STATIC_LOCAL(WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<Page>
>, allPages, ()); | 62 DEFINE_STATIC_LOCAL(WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<Page>
>, allPages, ()); |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 488 |
| 488 void Page::didCommitLoad(LocalFrame* frame) | 489 void Page::didCommitLoad(LocalFrame* frame) |
| 489 { | 490 { |
| 490 notifyDidCommitLoad(frame); | 491 notifyDidCommitLoad(frame); |
| 491 if (m_mainFrame == frame) { | 492 if (m_mainFrame == frame) { |
| 492 frame->console().clearMessages(); | 493 frame->console().clearMessages(); |
| 493 useCounter().didCommitLoad(); | 494 useCounter().didCommitLoad(); |
| 494 frameHost().visualViewport().sendUMAMetrics(); | 495 frameHost().visualViewport().sendUMAMetrics(); |
| 495 m_originsUsingFeatures.updateMeasurementsAndClear(); | 496 m_originsUsingFeatures.updateMeasurementsAndClear(); |
| 496 UserGestureIndicator::clearProcessedUserGestureSinceLoad(); | 497 UserGestureIndicator::clearProcessedUserGestureSinceLoad(); |
| 498 PaintTiming::from(*frame->document()).setLoadCommitted(); |
| 497 } | 499 } |
| 498 } | 500 } |
| 499 | 501 |
| 500 void Page::acceptLanguagesChanged() | 502 void Page::acceptLanguagesChanged() |
| 501 { | 503 { |
| 502 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames; | 504 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames; |
| 503 | 505 |
| 504 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire | 506 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire |
| 505 // an event so we keep the frames alive until we are done. | 507 // an event so we keep the frames alive until we are done. |
| 506 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 508 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 { | 594 { |
| 593 } | 595 } |
| 594 | 596 |
| 595 Page::PageClients::~PageClients() | 597 Page::PageClients::~PageClients() |
| 596 { | 598 { |
| 597 } | 599 } |
| 598 | 600 |
| 599 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; | 601 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; |
| 600 | 602 |
| 601 } // namespace blink | 603 } // namespace blink |
| OLD | NEW |