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

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

Issue 1773523003: deviceScaleFactorChanged() handles style recalc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 { 308 {
309 return frameHost().visualViewport().scale(); 309 return frameHost().visualViewport().scale();
310 } 310 }
311 311
312 void Page::setDeviceScaleFactor(float scaleFactor) 312 void Page::setDeviceScaleFactor(float scaleFactor)
313 { 313 {
314 if (m_deviceScaleFactor == scaleFactor) 314 if (m_deviceScaleFactor == scaleFactor)
315 return; 315 return;
316 316
317 m_deviceScaleFactor = scaleFactor; 317 m_deviceScaleFactor = scaleFactor;
318 setNeedsRecalcStyleInAllFrames();
319 318
320 if (mainFrame() && mainFrame()->isLocalFrame()) 319 if (mainFrame() && mainFrame()->isLocalFrame())
321 deprecatedLocalMainFrame()->deviceScaleFactorChanged(); 320 deprecatedLocalMainFrame()->deviceScaleFactorChanged();
322 } 321 }
323 322
324 void Page::setDeviceColorProfile(const Vector<char>& profile) 323 void Page::setDeviceColorProfile(const Vector<char>& profile)
325 { 324 {
326 // FIXME: implement. 325 // FIXME: implement.
327 } 326 }
328 327
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 { 606 {
608 } 607 }
609 608
610 Page::PageClients::~PageClients() 609 Page::PageClients::~PageClients()
611 { 610 {
612 } 611 }
613 612
614 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 613 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
615 614
616 } // namespace blink 615 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698