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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 // Only update if the accessibility object already exists and it's | 894 // Only update if the accessibility object already exists and it's |
895 // not already marked as dirty. | 895 // not already marked as dirty. |
896 if (AXObject* obj = get(renderer)) { | 896 if (AXObject* obj = get(renderer)) { |
897 if (!obj->needsToUpdateChildren()) { | 897 if (!obj->needsToUpdateChildren()) { |
898 obj->setNeedsToUpdateChildren(); | 898 obj->setNeedsToUpdateChildren(); |
899 postNotification(renderer, AXChildrenChanged, true); | 899 postNotification(renderer, AXChildrenChanged, true); |
900 } | 900 } |
901 } | 901 } |
902 } | 902 } |
903 | 903 |
904 void AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates() | |
905 { | |
906 // FIXME: no longer needed. When Chromium no longer calls | |
907 // WebAXObject::startCachingComputedObjectAttributesUntilTreeMutates, | |
908 // delete this function and the WebAXObject interfaces. | |
909 } | |
910 | |
911 void AXObjectCache::stopCachingComputedObjectAttributes() | |
912 { | |
913 // FIXME: no longer needed (see above). | |
914 } | |
915 | |
916 const Element* AXObjectCache::rootAXEditableElement(const Node* node) | 904 const Element* AXObjectCache::rootAXEditableElement(const Node* node) |
917 { | 905 { |
918 const Element* result = node->rootEditableElement(); | 906 const Element* result = node->rootEditableElement(); |
919 const Element* element = node->isElementNode() ? toElement(node) : node->par
entElement(); | 907 const Element* element = node->isElementNode() ? toElement(node) : node->par
entElement(); |
920 | 908 |
921 for (; element; element = element->parentElement()) { | 909 for (; element; element = element->parentElement()) { |
922 if (nodeIsTextControl(element)) | 910 if (nodeIsTextControl(element)) |
923 result = element; | 911 result = element; |
924 } | 912 } |
925 | 913 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 { | 1000 { |
1013 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); | 1001 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); |
1014 } | 1002 } |
1015 | 1003 |
1016 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) | 1004 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) |
1017 { | 1005 { |
1018 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged)
; | 1006 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged)
; |
1019 } | 1007 } |
1020 | 1008 |
1021 } // namespace WebCore | 1009 } // namespace WebCore |
OLD | NEW |