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

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: Created 6 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 side-by-side diff with in-line comments
Download patch
« Source/core/frame/Settings.in ('K') | « 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 e91c6bf5e24f99484e235c5edf1aeea8b94f0937..3812c33e7c7f99e96cd6be5fd9385e03f22d1283 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -553,6 +553,10 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType)
}
setNeedsRecalcStyleInAllFrames();
break;
+ case SettingsDelegate::AccessibilityStateChange:
+ if (!mainFrame() || !mainFrame()->isLocalFrame())
+ break;
+ deprecatedLocalMainFrame()->document()->axObjectCacheOwner().clearAXObjectCache();
}
}
« Source/core/frame/Settings.in ('K') | « Source/core/frame/SettingsDelegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698