Chromium Code Reviews| 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 503 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled() ); | 503 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled() ); |
| 504 break; | 504 break; |
| 505 } | 505 } |
| 506 case SettingsDelegate::ImageLoadingChange: | 506 case SettingsDelegate::ImageLoadingChange: |
| 507 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { | 507 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { |
| 508 frame->document()->fetcher()->setImagesEnabled(settings().imagesEnab led()); | 508 frame->document()->fetcher()->setImagesEnabled(settings().imagesEnab led()); |
| 509 frame->document()->fetcher()->setAutoLoadImages(settings().loadsImag esAutomatically()); | 509 frame->document()->fetcher()->setAutoLoadImages(settings().loadsImag esAutomatically()); |
| 510 } | 510 } |
| 511 break; | 511 break; |
| 512 case SettingsDelegate::TextAutosizingChange: | 512 case SettingsDelegate::TextAutosizingChange: |
| 513 InspectorInstrumentation::textAutosizingEnabled(mainFrame(), settings(). textAutosizingEnabled()); | |
|
pfeldman
2014/01/24 16:25:21
I don't think we need this complexity in page, con
gnana
2014/01/27 16:31:07
Done.
| |
| 514 setNeedsRecalcStyleInAllFrames(); | |
| 515 break; | |
| 516 case SettingsDelegate::ScriptEnableChange: | |
| 517 InspectorInstrumentation::scriptsEnabled(mainFrame(), settings().scriptE nabled()); | |
| 518 break; | |
| 519 case SettingsDelegate::DeviceScaleChange: | |
| 520 InspectorInstrumentation::fontScaleFactor(mainFrame(), settings().device ScaleAdjustment()); | |
| 521 | |
| 513 // FIXME: I wonder if this needs to traverse frames like in WebViewImpl: :resize, or whether there is only one document per Settings instance? | 522 // FIXME: I wonder if this needs to traverse frames like in WebViewImpl: :resize, or whether there is only one document per Settings instance? |
| 514 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { | 523 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { |
| 515 TextAutosizer* textAutosizer = frame->document()->textAutosizer(); | 524 TextAutosizer* textAutosizer = frame->document()->textAutosizer(); |
| 516 if (textAutosizer) | 525 if (textAutosizer) |
| 517 textAutosizer->recalculateMultipliers(); | 526 textAutosizer->recalculateMultipliers(); |
| 518 } | 527 } |
| 519 setNeedsRecalcStyleInAllFrames(); | 528 setNeedsRecalcStyleInAllFrames(); |
| 520 break; | 529 break; |
| 521 } | 530 } |
| 522 } | 531 } |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 547 , backForwardClient(0) | 556 , backForwardClient(0) |
| 548 , spellCheckerClient(0) | 557 , spellCheckerClient(0) |
| 549 { | 558 { |
| 550 } | 559 } |
| 551 | 560 |
| 552 Page::PageClients::~PageClients() | 561 Page::PageClients::~PageClients() |
| 553 { | 562 { |
| 554 } | 563 } |
| 555 | 564 |
| 556 } // namespace WebCore | 565 } // namespace WebCore |
| OLD | NEW |