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

Side by Side Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebKit/chromium/tests/ChromeClientImplTest.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 return; 952 return;
953 Document* document = toFrameView(scrollBar->parent())->frame()->document (); 953 Document* document = toFrameView(scrollBar->parent())->frame()->document ();
954 if (document != document->topDocument()) 954 if (document != document->topDocument())
955 return; 955 return;
956 obj = get(document->renderer()); 956 obj = get(document->renderer());
957 } 957 }
958 958
959 if (!obj || !obj->document() || !obj->documentFrameView() || !obj->documentF rameView()->frame() || !obj->documentFrameView()->frame()->page()) 959 if (!obj || !obj->document() || !obj->documentFrameView() || !obj->documentF rameView()->frame() || !obj->documentFrameView()->frame()->page())
960 return; 960 return;
961 961
962 ChromeClient* client = obj->documentFrameView()->frame()->page()->chrome()-> client(); 962 ChromeClient* client = obj->documentFrameView()->frame()->page()->chrome().c lient();
963 if (!client) 963 if (!client)
964 return; 964 return;
965 965
966 switch (notification) { 966 switch (notification) {
967 case AXActiveDescendantChanged: 967 case AXActiveDescendantChanged:
968 if (!obj->document()->focusedNode() || (obj->node() != obj->document()-> focusedNode())) 968 if (!obj->document()->focusedNode() || (obj->node() != obj->document()-> focusedNode()))
969 break; 969 break;
970 970
971 // Calling handleFocusedUIElementChanged will focus the new active 971 // Calling handleFocusedUIElementChanged will focus the new active
972 // descendant and send the AXFocusedUIElementChanged notification. 972 // descendant and send the AXFocusedUIElementChanged notification.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) 1024 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode)
1025 { 1025 {
1026 // The anchor node may not be accessible. Post the notification for the 1026 // The anchor node may not be accessible. Post the notification for the
1027 // first accessible object. 1027 // first accessible object.
1028 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode( anchorNode), AXScrolledToAnchor); 1028 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode( anchorNode), AXScrolledToAnchor);
1029 } 1029 }
1030 1030
1031 } // namespace WebCore 1031 } // namespace WebCore
1032 1032
1033 #endif // HAVE(ACCESSIBILITY) 1033 #endif // HAVE(ACCESSIBILITY)
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/tests/ChromeClientImplTest.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698