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

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

Issue 637223005: Accessibility events should be sent to the axObjectCacheOwner's frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « no previous file | Source/web/ChromeClientImpl.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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698