| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 { | 160 { |
| 161 if (!gAccessibilityEnabled) | 161 if (!gAccessibilityEnabled) |
| 162 return 0; | 162 return 0; |
| 163 | 163 |
| 164 // get the focused node in the page | 164 // get the focused node in the page |
| 165 Document* focusedDocument = page->focusController().focusedOrMainFrame()->do
cument(); | 165 Document* focusedDocument = page->focusController().focusedOrMainFrame()->do
cument(); |
| 166 Node* focusedNode = focusedDocument->focusedElement(); | 166 Node* focusedNode = focusedDocument->focusedElement(); |
| 167 if (!focusedNode) | 167 if (!focusedNode) |
| 168 focusedNode = focusedDocument; | 168 focusedNode = focusedDocument; |
| 169 | 169 |
| 170 if (focusedNode->hasTagName(areaTag)) | 170 if (isHTMLAreaElement(*focusedNode)) |
| 171 return focusedImageMapUIElement(toHTMLAreaElement(focusedNode)); | 171 return focusedImageMapUIElement(toHTMLAreaElement(focusedNode)); |
| 172 | 172 |
| 173 AXObject* obj = focusedNode->document().axObjectCache()->getOrCreate(focused
Node); | 173 AXObject* obj = focusedNode->document().axObjectCache()->getOrCreate(focused
Node); |
| 174 if (!obj) | 174 if (!obj) |
| 175 return 0; | 175 return 0; |
| 176 | 176 |
| 177 if (obj->shouldFocusActiveDescendant()) { | 177 if (obj->shouldFocusActiveDescendant()) { |
| 178 if (AXObject* descendant = obj->activeDescendant()) | 178 if (AXObject* descendant = obj->activeDescendant()) |
| 179 obj = descendant; | 179 obj = descendant; |
| 180 } | 180 } |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 { | 1034 { |
| 1035 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); | 1035 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); |
| 1036 } | 1036 } |
| 1037 | 1037 |
| 1038 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) | 1038 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) |
| 1039 { | 1039 { |
| 1040 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged)
; | 1040 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged)
; |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 } // namespace WebCore | 1043 } // namespace WebCore |
| OLD | NEW |