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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2100753003: Enable PDF accessibility when RenderFrame's accessibility mode changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work around cross-platform whitespace difference in print preview test Created 4 years, 5 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 | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 0fe03c647e108e470c63b818949ba1f795a02eed..3feb4088a2bc7f6d582b20c706fea2bcc4a24e86 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2102,11 +2102,12 @@ void RenderFrameImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) {
delete render_accessibility_;
render_accessibility_ = NULL;
}
- if (accessibility_mode_ == AccessibilityModeOff)
- return;
if (accessibility_mode_ & AccessibilityModeFlagFullTree)
render_accessibility_ = new RenderAccessibilityImpl(this);
+
+ FOR_EACH_OBSERVER(RenderFrameObserver, observers_,
+ AccessibilityModeChanged());
}
void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) {
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698