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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 333 return m_isCursorVisible && settings().deviceSupportsMouse(); | 333 return m_isCursorVisible && settings().deviceSupportsMouse(); |
| 334 } | 334 } |
| 335 | 335 |
| 336 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) | 336 void Page::settingsChanged(SettingsDelegate::ChangeType changeType) |
| 337 { | 337 { |
| 338 switch (changeType) { | 338 switch (changeType) { |
| 339 case SettingsDelegate::StyleChange: | 339 case SettingsDelegate::StyleChange: |
| 340 setNeedsRecalcStyleInAllFrames(); | 340 setNeedsRecalcStyleInAllFrames(); |
| 341 break; | 341 break; |
| 342 case SettingsDelegate::ViewportDescriptionChange: | 342 case SettingsDelegate::ViewportDescriptionChange: |
| 343 if (mainFrame() && mainFrame()->isLocalFrame()) | 343 if (mainFrame() && mainFrame()->isLocalFrame()) { |
| 344 deprecatedLocalMainFrame()->document()->updateViewportDescription(); | 344 deprecatedLocalMainFrame()->document()->updateViewportDescription(); |
| 345 // The text autosizer has dependencies on the viewport. | |
| 346 if (TextAutosizer* textAutosizer = deprecatedLocalMainFrame()->docum ent()->textAutosizer()) | |
| 347 textAutosizer->updatePageInfoInAllFrames(); | |
|
rune
2016/09/15 08:43:18
Wouldn't this also be an issue when you set the vi
skobes
2016/09/16 01:19:57
It looks like we already call updatePageInfoInAllF
pdr.
2016/09/17 05:14:53
This should only be called for settings changes li
| |
| 348 } | |
| 345 break; | 349 break; |
| 346 case SettingsDelegate::DNSPrefetchingChange: | 350 case SettingsDelegate::DNSPrefetchingChange: |
| 347 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { | 351 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { |
| 348 if (frame->isLocalFrame()) | 352 if (frame->isLocalFrame()) |
| 349 toLocalFrame(frame)->document()->initDNSPrefetch(); | 353 toLocalFrame(frame)->document()->initDNSPrefetch(); |
| 350 } | 354 } |
| 351 break; | 355 break; |
| 352 case SettingsDelegate::ImageLoadingChange: | 356 case SettingsDelegate::ImageLoadingChange: |
| 353 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { | 357 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { |
| 354 if (frame->isLocalFrame()) { | 358 if (frame->isLocalFrame()) { |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 522 { | 526 { |
| 523 } | 527 } |
| 524 | 528 |
| 525 Page::PageClients::~PageClients() | 529 Page::PageClients::~PageClients() |
| 526 { | 530 { |
| 527 } | 531 } |
| 528 | 532 |
| 529 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 533 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
| 530 | 534 |
| 531 } // namespace blink | 535 } // namespace blink |
| OLD | NEW |