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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "core/page/DragController.h" | 47 #include "core/page/DragController.h" |
48 #include "core/page/FocusController.h" | 48 #include "core/page/FocusController.h" |
49 #include "core/page/FrameTree.h" | 49 #include "core/page/FrameTree.h" |
50 #include "core/page/PageLifecycleNotifier.h" | 50 #include "core/page/PageLifecycleNotifier.h" |
51 #include "core/page/PointerLockController.h" | 51 #include "core/page/PointerLockController.h" |
52 #include "core/page/StorageClient.h" | 52 #include "core/page/StorageClient.h" |
53 #include "core/page/ValidationMessageClient.h" | 53 #include "core/page/ValidationMessageClient.h" |
54 #include "core/page/scrolling/ScrollingCoordinator.h" | 54 #include "core/page/scrolling/ScrollingCoordinator.h" |
55 #include "core/rendering/FastTextAutosizer.h" | 55 #include "core/rendering/FastTextAutosizer.h" |
56 #include "core/rendering/RenderView.h" | 56 #include "core/rendering/RenderView.h" |
57 #include "core/rendering/TextAutosizer.h" | |
58 #include "core/storage/StorageNamespace.h" | 57 #include "core/storage/StorageNamespace.h" |
59 #include "platform/plugins/PluginData.h" | 58 #include "platform/plugins/PluginData.h" |
60 #include "wtf/HashMap.h" | 59 #include "wtf/HashMap.h" |
61 #include "wtf/RefCountedLeakCounter.h" | 60 #include "wtf/RefCountedLeakCounter.h" |
62 #include "wtf/StdLibExtras.h" | 61 #include "wtf/StdLibExtras.h" |
63 #include "wtf/text/Base64.h" | 62 #include "wtf/text/Base64.h" |
64 | 63 |
65 namespace blink { | 64 namespace blink { |
66 | 65 |
67 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, pageCounter, ("Page")); | 66 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, pageCounter, ("Page")); |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { | 512 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
514 if (frame->isLocalFrame()) { | 513 if (frame->isLocalFrame()) { |
515 toLocalFrame(frame)->document()->fetcher()->setImagesEnabled(set
tings().imagesEnabled()); | 514 toLocalFrame(frame)->document()->fetcher()->setImagesEnabled(set
tings().imagesEnabled()); |
516 toLocalFrame(frame)->document()->fetcher()->setAutoLoadImages(se
ttings().loadsImagesAutomatically()); | 515 toLocalFrame(frame)->document()->fetcher()->setAutoLoadImages(se
ttings().loadsImagesAutomatically()); |
517 } | 516 } |
518 } | 517 } |
519 break; | 518 break; |
520 case SettingsDelegate::TextAutosizingChange: | 519 case SettingsDelegate::TextAutosizingChange: |
521 if (!mainFrame() || !mainFrame()->isLocalFrame()) | 520 if (!mainFrame() || !mainFrame()->isLocalFrame()) |
522 break; | 521 break; |
523 if (FastTextAutosizer* textAutosizer = deprecatedLocalMainFrame()->docum
ent()->fastTextAutosizer()) { | 522 if (FastTextAutosizer* textAutosizer = deprecatedLocalMainFrame()->docum
ent()->fastTextAutosizer()) |
524 textAutosizer->updatePageInfoInAllFrames(); | 523 textAutosizer->updatePageInfoInAllFrames(); |
525 } else { | |
526 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traver
seNext()) { | |
527 if (!frame->isLocalFrame()) | |
528 continue; | |
529 if (TextAutosizer* textAutosizer = toLocalFrame(frame)->document
()->textAutosizer()) | |
530 textAutosizer->recalculateMultipliers(); | |
531 } | |
532 // TextAutosizing updates RenderStyle during layout phase (via TextA
utosizer::processSubtree). | |
533 // We should invoke setNeedsLayout here. | |
534 setNeedsLayoutInAllFrames(); | |
535 } | |
536 break; | 524 break; |
537 case SettingsDelegate::ScriptEnableChange: | 525 case SettingsDelegate::ScriptEnableChange: |
538 m_inspectorController->scriptsEnabled(settings().scriptEnabled()); | 526 m_inspectorController->scriptsEnabled(settings().scriptEnabled()); |
539 break; | 527 break; |
540 case SettingsDelegate::FontFamilyChange: | 528 case SettingsDelegate::FontFamilyChange: |
541 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { | 529 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
542 if (frame->isLocalFrame()) | 530 if (frame->isLocalFrame()) |
543 toLocalFrame(frame)->document()->styleEngine()->updateGenericFon
tFamilySettings(); | 531 toLocalFrame(frame)->document()->styleEngine()->updateGenericFon
tFamilySettings(); |
544 } | 532 } |
545 setNeedsRecalcStyleInAllFrames(); | 533 setNeedsRecalcStyleInAllFrames(); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 , spellCheckerClient(0) | 643 , spellCheckerClient(0) |
656 , storageClient(0) | 644 , storageClient(0) |
657 { | 645 { |
658 } | 646 } |
659 | 647 |
660 Page::PageClients::~PageClients() | 648 Page::PageClients::~PageClients() |
661 { | 649 { |
662 } | 650 } |
663 | 651 |
664 } // namespace blink | 652 } // namespace blink |
OLD | NEW |