| 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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 return; | 961 return; |
| 962 Document* document = toFrameView(scrollBar->parent())->frame().document(
); | 962 Document* document = toFrameView(scrollBar->parent())->frame().document(
); |
| 963 if (document != document->topDocument()) | 963 if (document != document->topDocument()) |
| 964 return; | 964 return; |
| 965 obj = get(document->renderView()); | 965 obj = get(document->renderView()); |
| 966 } | 966 } |
| 967 | 967 |
| 968 if (!obj || !obj->document() || !obj->documentFrameView() || !obj->documentF
rameView()->frame().page()) | 968 if (!obj || !obj->document() || !obj->documentFrameView() || !obj->documentF
rameView()->frame().page()) |
| 969 return; | 969 return; |
| 970 | 970 |
| 971 ChromeClient& client = obj->documentFrameView()->frame().page()->chrome().cl
ient(); | 971 ChromeClient& client = obj->document()->axObjectCacheOwner().page()->chrome(
).client(); |
| 972 | 972 |
| 973 if (notification == AXActiveDescendantChanged | 973 if (notification == AXActiveDescendantChanged |
| 974 && obj->document()->focusedElement() | 974 && obj->document()->focusedElement() |
| 975 && obj->node() == obj->document()->focusedElement()) { | 975 && obj->node() == obj->document()->focusedElement()) { |
| 976 // Calling handleFocusedUIElementChanged will focus the new active | 976 // Calling handleFocusedUIElementChanged will focus the new active |
| 977 // descendant and send the AXFocusedUIElementChanged notification. | 977 // descendant and send the AXFocusedUIElementChanged notification. |
| 978 handleFocusedUIElementChanged(0, obj->document()->focusedElement()); | 978 handleFocusedUIElementChanged(0, obj->document()->focusedElement()); |
| 979 } | 979 } |
| 980 | 980 |
| 981 client.postAccessibilityNotification(obj, notification); | 981 client.postAccessibilityNotification(obj, notification); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 void AXObjectCache::setCanvasObjectBounds(Element* element, const LayoutRect& re
ct) | 1017 void AXObjectCache::setCanvasObjectBounds(Element* element, const LayoutRect& re
ct) |
| 1018 { | 1018 { |
| 1019 AXObject* obj = getOrCreate(element); | 1019 AXObject* obj = getOrCreate(element); |
| 1020 if (!obj) | 1020 if (!obj) |
| 1021 return; | 1021 return; |
| 1022 | 1022 |
| 1023 obj->setElementRect(rect); | 1023 obj->setElementRect(rect); |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 } // namespace blink | 1026 } // namespace blink |
| OLD | NEW |