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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/SettingsDelegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index ea017a3640d25f70b17faa25f4081577e7a59620..9dc655a814e403f5e0bb9d553a4929b778ff034c 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -554,6 +554,10 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType)
}
setNeedsRecalcStyleInAllFrames();
break;
+ case SettingsDelegate::AccessibilityStateChange:
+ if (!mainFrame() || !mainFrame()->isLocalFrame())
+ break;
+ deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObjectCache();
}
}
« 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