| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "core/page/ChromeClient.h" | 45 #include "core/page/ChromeClient.h" |
| 46 #include "core/page/ContextMenuController.h" | 46 #include "core/page/ContextMenuController.h" |
| 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/RenderView.h" | 56 #include "core/rendering/RenderView.h" |
| 56 #include "core/rendering/TextAutosizer.h" | 57 #include "core/rendering/TextAutosizer.h" |
| 57 #include "core/storage/StorageNamespace.h" | 58 #include "core/storage/StorageNamespace.h" |
| 58 #include "platform/plugins/PluginData.h" | 59 #include "platform/plugins/PluginData.h" |
| 59 #include "wtf/HashMap.h" | 60 #include "wtf/HashMap.h" |
| 60 #include "wtf/RefCountedLeakCounter.h" | 61 #include "wtf/RefCountedLeakCounter.h" |
| 61 #include "wtf/StdLibExtras.h" | 62 #include "wtf/StdLibExtras.h" |
| 62 #include "wtf/text/Base64.h" | 63 #include "wtf/text/Base64.h" |
| 63 | 64 |
| 64 namespace WebCore { | 65 namespace WebCore { |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled()
); | 480 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled()
); |
| 480 break; | 481 break; |
| 481 } | 482 } |
| 482 case SettingsDelegate::ImageLoadingChange: | 483 case SettingsDelegate::ImageLoadingChange: |
| 483 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().trave
rseNext()) { | 484 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().trave
rseNext()) { |
| 484 frame->document()->fetcher()->setImagesEnabled(settings().imagesEnab
led()); | 485 frame->document()->fetcher()->setImagesEnabled(settings().imagesEnab
led()); |
| 485 frame->document()->fetcher()->setAutoLoadImages(settings().loadsImag
esAutomatically()); | 486 frame->document()->fetcher()->setAutoLoadImages(settings().loadsImag
esAutomatically()); |
| 486 } | 487 } |
| 487 break; | 488 break; |
| 488 case SettingsDelegate::TextAutosizingChange: | 489 case SettingsDelegate::TextAutosizingChange: |
| 489 if (RuntimeEnabledFeatures::fastTextAutosizingEnabled()) { | 490 if (!mainFrame()) |
| 490 // FTA needs both setNeedsRecalcStyle and setNeedsLayout after a set
ting change. | 491 break; |
| 491 setNeedsRecalcStyleInAllFrames(); | 492 if (FastTextAutosizer* textAutosizer = mainFrame()->document()->fastText
Autosizer()) { |
| 492 setNeedsLayoutInAllFrames(); | 493 textAutosizer->updatePageInfoInAllFrames(); |
| 493 } else { | 494 } else { |
| 494 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().t
raverseNext()) { | 495 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().t
raverseNext()) { |
| 495 if (TextAutosizer* textAutosizer = frame->document()->textAutosi
zer()) | 496 if (TextAutosizer* textAutosizer = frame->document()->textAutosi
zer()) |
| 496 textAutosizer->recalculateMultipliers(); | 497 textAutosizer->recalculateMultipliers(); |
| 497 } | 498 } |
| 498 // TextAutosizing updates RenderStyle during layout phase (via TextA
utosizer::processSubtree). | 499 // TextAutosizing updates RenderStyle during layout phase (via TextA
utosizer::processSubtree). |
| 499 // We should invoke setNeedsLayout here. | 500 // We should invoke setNeedsLayout here. |
| 500 setNeedsLayoutInAllFrames(); | 501 setNeedsLayoutInAllFrames(); |
| 501 } | 502 } |
| 502 break; | 503 break; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 , spellCheckerClient(0) | 541 , spellCheckerClient(0) |
| 541 , storageClient(0) | 542 , storageClient(0) |
| 542 { | 543 { |
| 543 } | 544 } |
| 544 | 545 |
| 545 Page::PageClients::~PageClients() | 546 Page::PageClients::~PageClients() |
| 546 { | 547 { |
| 547 } | 548 } |
| 548 | 549 |
| 549 } // namespace WebCore | 550 } // namespace WebCore |
| OLD | NEW |