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

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

Issue 233323004: Move RenderLayerCompositor trigger caching to be when settings change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed WebViewTest.SetBaseBackgroundColorAndBlendWithExistingContent Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/rendering/compositing/RenderLayerCompositor.h » ('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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 } 507 }
508 break; 508 break;
509 case SettingsDelegate::ScriptEnableChange: 509 case SettingsDelegate::ScriptEnableChange:
510 m_inspectorController->scriptsEnabled(settings().scriptEnabled()); 510 m_inspectorController->scriptsEnabled(settings().scriptEnabled());
511 break; 511 break;
512 case SettingsDelegate::FontFamilyChange: 512 case SettingsDelegate::FontFamilyChange:
513 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().trave rseNext()) 513 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().trave rseNext())
514 frame->document()->styleEngine()->updateGenericFontFamilySettings(); 514 frame->document()->styleEngine()->updateGenericFontFamilySettings();
515 setNeedsRecalcStyleInAllFrames(); 515 setNeedsRecalcStyleInAllFrames();
516 break; 516 break;
517 case SettingsDelegate::AcceleratedCompositingChange:
518 updateAcceleratedCompositingSettings();
519 break;
517 } 520 }
518 } 521 }
519 522
523 void Page::updateAcceleratedCompositingSettings()
524 {
525 for (LocalFrame* frame = mainFrame(); frame; frame = frame->tree().traverseN ext()) {
526 if (FrameView* view = frame->view())
527 view->updateAcceleratedCompositingSettings();
528 }
529 }
530
520 void Page::didCommitLoad(LocalFrame* frame) 531 void Page::didCommitLoad(LocalFrame* frame)
521 { 532 {
522 lifecycleNotifier().notifyDidCommitLoad(frame); 533 lifecycleNotifier().notifyDidCommitLoad(frame);
523 if (m_mainFrame == frame) { 534 if (m_mainFrame == frame) {
524 useCounter().didCommitLoad(); 535 useCounter().didCommitLoad();
525 m_inspectorController->didCommitLoadForMainFrame(); 536 m_inspectorController->didCommitLoadForMainFrame();
526 } 537 }
527 } 538 }
528 539
529 PageLifecycleNotifier& Page::lifecycleNotifier() 540 PageLifecycleNotifier& Page::lifecycleNotifier()
(...skipping 16 matching lines...) Expand all
546 , spellCheckerClient(0) 557 , spellCheckerClient(0)
547 , storageClient(0) 558 , storageClient(0)
548 { 559 {
549 } 560 }
550 561
551 Page::PageClients::~PageClients() 562 Page::PageClients::~PageClients()
552 { 563 {
553 } 564 }
554 565
555 } // namespace WebCore 566 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/rendering/compositing/RenderLayerCompositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698