Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: Source/core/page/Page.cpp

Issue 911083002: Carry out a resize even if no layout has been performed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added comment to unit test Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/frame/SettingsDelegate.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 { 452 {
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::ForceZeroLayoutHeightChange:
gsennton 2015/02/13 19:41:07 A new changeType was added here since we would lik
463 if (mainFrame() && mainFrame()->isLocalFrame())
464 deprecatedLocalMainFrame()->view()->didChangeForceLayoutHeightMode() ;
465 break;
462 case SettingsDelegate::ViewportDescriptionChange: 466 case SettingsDelegate::ViewportDescriptionChange:
463 if (mainFrame() && mainFrame()->isLocalFrame()) 467 if (mainFrame() && mainFrame()->isLocalFrame())
464 deprecatedLocalMainFrame()->document()->updateViewportDescription(); 468 deprecatedLocalMainFrame()->document()->updateViewportDescription();
465 break; 469 break;
466 case SettingsDelegate::MediaTypeChange: 470 case SettingsDelegate::MediaTypeChange:
467 if (m_mainFrame->isLocalFrame()) { 471 if (m_mainFrame->isLocalFrame()) {
468 deprecatedLocalMainFrame()->view()->setMediaType(AtomicString(settin gs().mediaTypeOverride())); 472 deprecatedLocalMainFrame()->view()->setMediaType(AtomicString(settin gs().mediaTypeOverride()));
469 setNeedsRecalcStyleInAllFrames(); 473 setNeedsRecalcStyleInAllFrames();
470 } 474 }
471 break; 475 break;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 , inspectorClient(nullptr) 634 , inspectorClient(nullptr)
631 , spellCheckerClient(nullptr) 635 , spellCheckerClient(nullptr)
632 { 636 {
633 } 637 }
634 638
635 Page::PageClients::~PageClients() 639 Page::PageClients::~PageClients()
636 { 640 {
637 } 641 }
638 642
639 } // namespace blink 643 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/SettingsDelegate.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698