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 HTMLMediaElement::setTextTrackKindUserPreferenceForAllMediaEleme nts(toLocalFrame(frame)->document()); | |
philipj_slow
2015/07/09 15:34:09
There's a null check for doc above so I guess that
srivats
2015/07/09 21:25:37
Done.
| |
503 } | |
504 } | |
505 break; | |
498 } | 506 } |
499 } | 507 } |
500 | 508 |
501 void Page::updateAcceleratedCompositingSettings() | 509 void Page::updateAcceleratedCompositingSettings() |
502 { | 510 { |
503 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { | 511 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { |
504 if (!frame->isLocalFrame()) | 512 if (!frame->isLocalFrame()) |
505 continue; | 513 continue; |
506 if (FrameView* view = toLocalFrame(frame)->view()) | 514 if (FrameView* view = toLocalFrame(frame)->view()) |
507 view->updateAcceleratedCompositingSettings(); | 515 view->updateAcceleratedCompositingSettings(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
595 { | 603 { |
596 } | 604 } |
597 | 605 |
598 Page::PageClients::~PageClients() | 606 Page::PageClients::~PageClients() |
599 { | 607 { |
600 } | 608 } |
601 | 609 |
602 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; | 610 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; |
603 | 611 |
604 } // namespace blink | 612 } // namespace blink |
OLD | NEW |