| 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 16 matching lines...) Expand all Loading... |
| 27 #include "core/editing/Caret.h" | 27 #include "core/editing/Caret.h" |
| 28 #include "core/editing/UndoStack.h" | 28 #include "core/editing/UndoStack.h" |
| 29 #include "core/events/Event.h" | 29 #include "core/events/Event.h" |
| 30 #include "core/fetch/ResourceFetcher.h" | 30 #include "core/fetch/ResourceFetcher.h" |
| 31 #include "core/frame/DOMTimer.h" | 31 #include "core/frame/DOMTimer.h" |
| 32 #include "core/frame/FrameConsole.h" | 32 #include "core/frame/FrameConsole.h" |
| 33 #include "core/frame/FrameHost.h" | 33 #include "core/frame/FrameHost.h" |
| 34 #include "core/frame/RemoteFrame.h" | 34 #include "core/frame/RemoteFrame.h" |
| 35 #include "core/frame/RemoteFrameView.h" | 35 #include "core/frame/RemoteFrameView.h" |
| 36 #include "core/frame/Settings.h" | 36 #include "core/frame/Settings.h" |
| 37 #include "core/html/HTMLMediaElement.h" |
| 37 #include "core/inspector/InspectorInstrumentation.h" | 38 #include "core/inspector/InspectorInstrumentation.h" |
| 38 #include "core/layout/LayoutView.h" | 39 #include "core/layout/LayoutView.h" |
| 39 #include "core/layout/TextAutosizer.h" | 40 #include "core/layout/TextAutosizer.h" |
| 40 #include "core/page/AutoscrollController.h" | 41 #include "core/page/AutoscrollController.h" |
| 41 #include "core/page/ChromeClient.h" | 42 #include "core/page/ChromeClient.h" |
| 42 #include "core/page/ContextMenuController.h" | 43 #include "core/page/ContextMenuController.h" |
| 43 #include "core/page/DragController.h" | 44 #include "core/page/DragController.h" |
| 44 #include "core/page/FocusController.h" | 45 #include "core/page/FocusController.h" |
| 45 #include "core/page/PointerLockController.h" | 46 #include "core/page/PointerLockController.h" |
| 46 #include "core/page/ValidationMessageClient.h" | 47 #include "core/page/ValidationMessageClient.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 case SettingsDelegate::ViewportRuleChange: | 489 case SettingsDelegate::ViewportRuleChange: |
| 489 { | 490 { |
| 490 if (!mainFrame() || !mainFrame()->isLocalFrame()) | 491 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
| 491 break; | 492 break; |
| 492 Document* doc = toLocalFrame(mainFrame())->document(); | 493 Document* doc = toLocalFrame(mainFrame())->document(); |
| 493 if (!doc || !doc->styleResolver()) | 494 if (!doc || !doc->styleResolver()) |
| 494 break; | 495 break; |
| 495 doc->styleResolver()->viewportStyleResolver()->collectViewportRules(
); | 496 doc->styleResolver()->viewportStyleResolver()->collectViewportRules(
); |
| 496 } | 497 } |
| 497 break; | 498 break; |
| 499 case SettingsDelegate::TextTrackKindUserPreferenceChange: |
| 500 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
| 501 if (frame->isLocalFrame()) { |
| 502 Document* doc = toLocalFrame(frame)->document(); |
| 503 if (doc) |
| 504 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaE
lements(doc); |
| 505 } |
| 506 } |
| 507 break; |
| 498 } | 508 } |
| 499 } | 509 } |
| 500 | 510 |
| 501 void Page::updateAcceleratedCompositingSettings() | 511 void Page::updateAcceleratedCompositingSettings() |
| 502 { | 512 { |
| 503 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 513 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
| 504 if (!frame->isLocalFrame()) | 514 if (!frame->isLocalFrame()) |
| 505 continue; | 515 continue; |
| 506 if (FrameView* view = toLocalFrame(frame)->view()) | 516 if (FrameView* view = toLocalFrame(frame)->view()) |
| 507 view->updateAcceleratedCompositingSettings(); | 517 view->updateAcceleratedCompositingSettings(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 { | 605 { |
| 596 } | 606 } |
| 597 | 607 |
| 598 Page::PageClients::~PageClients() | 608 Page::PageClients::~PageClients() |
| 599 { | 609 { |
| 600 } | 610 } |
| 601 | 611 |
| 602 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; | 612 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; |
| 603 | 613 |
| 604 } // namespace blink | 614 } // namespace blink |
| OLD | NEW |