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

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

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/core/page/InjectedStyleSheets.cpp ('k') | Source/core/testing/Internals.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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 break; 493 break;
494 if (TextAutosizer* textAutosizer = deprecatedLocalMainFrame()->document( )->textAutosizer()) 494 if (TextAutosizer* textAutosizer = deprecatedLocalMainFrame()->document( )->textAutosizer())
495 textAutosizer->updatePageInfoInAllFrames(); 495 textAutosizer->updatePageInfoInAllFrames();
496 break; 496 break;
497 case SettingsDelegate::ScriptEnableChange: 497 case SettingsDelegate::ScriptEnableChange:
498 m_inspectorController->scriptsEnabled(settings().scriptEnabled()); 498 m_inspectorController->scriptsEnabled(settings().scriptEnabled());
499 break; 499 break;
500 case SettingsDelegate::FontFamilyChange: 500 case SettingsDelegate::FontFamilyChange:
501 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { 501 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
502 if (frame->isLocalFrame()) 502 if (frame->isLocalFrame())
503 toLocalFrame(frame)->document()->styleEngine()->updateGenericFon tFamilySettings(); 503 toLocalFrame(frame)->document()->styleEngine().updateGenericFont FamilySettings();
504 } 504 }
505 setNeedsRecalcStyleInAllFrames(); 505 setNeedsRecalcStyleInAllFrames();
506 break; 506 break;
507 case SettingsDelegate::AcceleratedCompositingChange: 507 case SettingsDelegate::AcceleratedCompositingChange:
508 updateAcceleratedCompositingSettings(); 508 updateAcceleratedCompositingSettings();
509 break; 509 break;
510 case SettingsDelegate::MediaQueryChange: 510 case SettingsDelegate::MediaQueryChange:
511 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { 511 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
512 if (frame->isLocalFrame()) 512 if (frame->isLocalFrame())
513 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged (); 513 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged ();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 , inspectorClient(nullptr) 620 , inspectorClient(nullptr)
621 , spellCheckerClient(nullptr) 621 , spellCheckerClient(nullptr)
622 { 622 {
623 } 623 }
624 624
625 Page::PageClients::~PageClients() 625 Page::PageClients::~PageClients()
626 { 626 {
627 } 627 }
628 628
629 } // namespace blink 629 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/InjectedStyleSheets.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698