| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |