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

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

Issue 1771823002: Remove unnecessary setNeedsRecalcStyleInAllFrames for fonts. (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 | « third_party/WebKit/Source/core/css/CSSFontSelector.cpp ('k') | 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 if (!mainFrame() || !mainFrame()->isLocalFrame()) 436 if (!mainFrame() || !mainFrame()->isLocalFrame())
437 break; 437 break;
438 if (TextAutosizer* textAutosizer = deprecatedLocalMainFrame()->document( )->textAutosizer()) 438 if (TextAutosizer* textAutosizer = deprecatedLocalMainFrame()->document( )->textAutosizer())
439 textAutosizer->updatePageInfoInAllFrames(); 439 textAutosizer->updatePageInfoInAllFrames();
440 break; 440 break;
441 case SettingsDelegate::FontFamilyChange: 441 case SettingsDelegate::FontFamilyChange:
442 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { 442 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
443 if (frame->isLocalFrame()) 443 if (frame->isLocalFrame())
444 toLocalFrame(frame)->document()->styleEngine().updateGenericFont FamilySettings(); 444 toLocalFrame(frame)->document()->styleEngine().updateGenericFont FamilySettings();
445 } 445 }
446 setNeedsRecalcStyleInAllFrames();
447 break; 446 break;
448 case SettingsDelegate::AcceleratedCompositingChange: 447 case SettingsDelegate::AcceleratedCompositingChange:
449 updateAcceleratedCompositingSettings(); 448 updateAcceleratedCompositingSettings();
450 break; 449 break;
451 case SettingsDelegate::MediaQueryChange: 450 case SettingsDelegate::MediaQueryChange:
452 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { 451 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
453 if (frame->isLocalFrame()) 452 if (frame->isLocalFrame())
454 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged (); 453 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged ();
455 } 454 }
456 break; 455 break;
(...skipping 150 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 | « third_party/WebKit/Source/core/css/CSSFontSelector.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698