| Index: webkit/glue/chrome_client_impl.cc
|
| ===================================================================
|
| --- webkit/glue/chrome_client_impl.cc (revision 21295)
|
| +++ 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);
|
| }
|
| }
|
| }
|
|
|