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

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

Issue 606703003: Delete AXObjectCache when disabling accessibility setting. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use invalidate in Settings.in Created 6 years, 2 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/frame/SettingsDelegate.h ('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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 case SettingsDelegate::AcceleratedCompositingChange: 547 case SettingsDelegate::AcceleratedCompositingChange:
548 updateAcceleratedCompositingSettings(); 548 updateAcceleratedCompositingSettings();
549 break; 549 break;
550 case SettingsDelegate::MediaQueryChange: 550 case SettingsDelegate::MediaQueryChange:
551 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { 551 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
552 if (frame->isLocalFrame()) 552 if (frame->isLocalFrame())
553 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged (); 553 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged ();
554 } 554 }
555 setNeedsRecalcStyleInAllFrames(); 555 setNeedsRecalcStyleInAllFrames();
556 break; 556 break;
557 case SettingsDelegate::AccessibilityStateChange:
558 if (!mainFrame() || !mainFrame()->isLocalFrame())
559 break;
560 deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObje ctCache();
557 } 561 }
558 } 562 }
559 563
560 void Page::updateAcceleratedCompositingSettings() 564 void Page::updateAcceleratedCompositingSettings()
561 { 565 {
562 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { 566 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) {
563 if (!frame->isLocalFrame()) 567 if (!frame->isLocalFrame())
564 continue; 568 continue;
565 if (FrameView* view = toLocalFrame(frame)->view()) 569 if (FrameView* view = toLocalFrame(frame)->view())
566 view->updateAcceleratedCompositingSettings(); 570 view->updateAcceleratedCompositingSettings();
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 , spellCheckerClient(0) 669 , spellCheckerClient(0)
666 , storageClient(0) 670 , storageClient(0)
667 { 671 {
668 } 672 }
669 673
670 Page::PageClients::~PageClients() 674 Page::PageClients::~PageClients()
671 { 675 {
672 } 676 }
673 677
674 } // namespace blink 678 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/SettingsDelegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698