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

Unified Diff: webkit/glue/chrome_client_impl.cc

Issue 160178: Merge 21296 - Fix a FORWARD_NULL defect reported by Coverity.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/chrome_client_impl.cc
===================================================================
--- webkit/glue/chrome_client_impl.cc (revision 21665)
+++ webkit/glue/chrome_client_impl.cc (working copy)
@@ -152,28 +152,28 @@
void ChromeClientImpl::focus() {
WebViewDelegate* delegate = webview_->delegate();
- if (delegate)
+ if (delegate) {
delegate->didFocus();
- // If accessibility is enabled, we should notify assistive technology that the
- // active AccessibilityObject changed.
- WebCore::Document* doc = webview_->GetFocusedWebCoreFrame()->document();
+ // If accessibility is enabled, we should notify assistive technology that
+ // the active AccessibilityObject changed.
+ WebCore::Document* doc = webview_->GetFocusedWebCoreFrame()->document();
- if (doc && doc->axObjectCache()->accessibilityEnabled()) {
- WebCore::Node* focused_node = webview_->GetFocusedNode();
+ if (doc && doc->axObjectCache()->accessibilityEnabled()) {
+ WebCore::Node* focused_node = webview_->GetFocusedNode();
- if (!focused_node) {
- // Could not retrieve focused Node.
- return;
- }
+ if (!focused_node) {
+ // Could not retrieve focused Node.
+ return;
+ }
- // Retrieve the focused AccessibilityObject.
- WebCore::AccessibilityObject* focused_acc_obj =
- doc->axObjectCache()->getOrCreate(focused_node->renderer());
+ // Retrieve the focused AccessibilityObject.
+ WebCore::AccessibilityObject* focused_acc_obj =
+ doc->axObjectCache()->getOrCreate(focused_node->renderer());
- // Alert assistive technology that focus changed.
- if (focused_acc_obj) {
- delegate->FocusAccessibilityObject(focused_acc_obj);
+ // Alert assistive technology that focus changed.
+ if (focused_acc_obj)
+ delegate->FocusAccessibilityObject(focused_acc_obj);
}
}
}
Property changes on: webkit\glue\chrome_client_impl.cc
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/webkit/glue/chrome_client_impl.cc:r21296
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698