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

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

Issue 1348503003: One AXObjectCache per frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated or deleted layout tests Created 5 years, 3 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
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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 case SettingsDelegate::AcceleratedCompositingChange: 471 case SettingsDelegate::AcceleratedCompositingChange:
472 updateAcceleratedCompositingSettings(); 472 updateAcceleratedCompositingSettings();
473 break; 473 break;
474 case SettingsDelegate::MediaQueryChange: 474 case SettingsDelegate::MediaQueryChange:
475 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) { 475 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
476 if (frame->isLocalFrame()) 476 if (frame->isLocalFrame())
477 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged (); 477 toLocalFrame(frame)->document()->mediaQueryAffectingValueChanged ();
478 } 478 }
479 break; 479 break;
480 case SettingsDelegate::AccessibilityStateChange: 480 case SettingsDelegate::AccessibilityStateChange:
481 if (!mainFrame() || !mainFrame()->isLocalFrame()) 481 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNe xt()) {
482 break; 482 if (frame->isLocalFrame())
483 deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObje ctCache(); 483 toLocalFrame(frame)->document()->clearAXObjectCache();
484 }
484 break; 485 break;
485 case SettingsDelegate::ViewportRuleChange: 486 case SettingsDelegate::ViewportRuleChange:
486 { 487 {
487 if (!mainFrame() || !mainFrame()->isLocalFrame()) 488 if (!mainFrame() || !mainFrame()->isLocalFrame())
488 break; 489 break;
489 Document* doc = toLocalFrame(mainFrame())->document(); 490 Document* doc = toLocalFrame(mainFrame())->document();
490 if (!doc || !doc->styleResolver()) 491 if (!doc || !doc->styleResolver())
491 break; 492 break;
492 doc->styleResolver()->viewportStyleResolver()->collectViewportRules( ); 493 doc->styleResolver()->viewportStyleResolver()->collectViewportRules( );
493 } 494 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 { 614 {
614 } 615 }
615 616
616 Page::PageClients::~PageClients() 617 Page::PageClients::~PageClients()
617 { 618 {
618 } 619 }
619 620
620 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 621 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
621 622
622 } // namespace blink 623 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698