| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 m_multisamplingChangedObservers.remove(observer); | 453 m_multisamplingChangedObservers.remove(observer); |
| 454 } | 454 } |
| 455 | 455 |
| 456 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) | 456 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) |
| 457 { | 457 { |
| 458 switch (changeType) { | 458 switch (changeType) { |
| 459 case SettingsDelegate::StyleChange: | 459 case SettingsDelegate::StyleChange: |
| 460 setNeedsRecalcStyleInAllFrames(); | 460 setNeedsRecalcStyleInAllFrames(); |
| 461 break; | 461 break; |
| 462 case SettingsDelegate::ViewportDescriptionChange: | 462 case SettingsDelegate::ViewportDescriptionChange: |
| 463 if (mainFrame() && mainFrame()->isLocalFrame()) | 463 if (mainFrame() && mainFrame()->isLocalFrame()) { |
| 464 deprecatedLocalMainFrame()->document()->updateViewportDescription(); | 464 deprecatedLocalMainFrame()->document()->updateViewportDescription(); |
| 465 deprecatedLocalMainFrame()->view()->didChangeForceLayoutHeightMode()
; |
| 466 } |
| 465 break; | 467 break; |
| 466 case SettingsDelegate::MediaTypeChange: | 468 case SettingsDelegate::MediaTypeChange: |
| 467 if (m_mainFrame->isLocalFrame()) { | 469 if (m_mainFrame->isLocalFrame()) { |
| 468 deprecatedLocalMainFrame()->view()->setMediaType(AtomicString(settin
gs().mediaTypeOverride())); | 470 deprecatedLocalMainFrame()->view()->setMediaType(AtomicString(settin
gs().mediaTypeOverride())); |
| 469 setNeedsRecalcStyleInAllFrames(); | 471 setNeedsRecalcStyleInAllFrames(); |
| 470 } | 472 } |
| 471 break; | 473 break; |
| 472 case SettingsDelegate::DNSPrefetchingChange: | 474 case SettingsDelegate::DNSPrefetchingChange: |
| 473 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { | 475 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe
xt()) { |
| 474 if (frame->isLocalFrame()) | 476 if (frame->isLocalFrame()) |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 , inspectorClient(nullptr) | 632 , inspectorClient(nullptr) |
| 631 , spellCheckerClient(nullptr) | 633 , spellCheckerClient(nullptr) |
| 632 { | 634 { |
| 633 } | 635 } |
| 634 | 636 |
| 635 Page::PageClients::~PageClients() | 637 Page::PageClients::~PageClients() |
| 636 { | 638 { |
| 637 } | 639 } |
| 638 | 640 |
| 639 } // namespace blink | 641 } // namespace blink |
| OLD | NEW |