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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
797 if (!view) | 797 if (!view) |
798 return; | 798 return; |
799 | 799 |
800 // We don't want to create a scroll view from this method, only update an ex isting one. | 800 // We don't want to create a scroll view from this method, only update an ex isting one. |
801 if (AXObject* scrollViewObject = get(view)) { | 801 if (AXObject* scrollViewObject = get(view)) { |
802 m_computedObjectAttributeCache->clear(); | 802 m_computedObjectAttributeCache->clear(); |
803 scrollViewObject->updateChildrenIfNecessary(); | 803 scrollViewObject->updateChildrenIfNecessary(); |
804 } | 804 } |
805 } | 805 } |
806 | 806 |
807 void AXObjectCache::handleLayoutComplete(RenderObject* renderer) | |
808 { | |
809 if (!renderer) | |
810 return; | |
811 | |
812 m_computedObjectAttributeCache->clear(); | |
813 | |
814 // Create the AXObject if it didn't yet exist - that's always safe at the en d of a layout, and it | |
815 // allows an AX notification to be sent when a page has its first layout, ra ther than when the | |
eseidel
2014/03/17 15:41:31
The document may be styled by the UA stylesheet at
| |
816 // document first loads. | |
817 if (AXObject* obj = getOrCreate(renderer)) | |
818 postNotification(obj, obj->document(), AXLayoutComplete, true); | |
819 } | |
820 | |
807 void AXObjectCache::handleAriaExpandedChange(Node* node) | 821 void AXObjectCache::handleAriaExpandedChange(Node* node) |
808 { | 822 { |
809 if (AXObject* obj = getOrCreate(node)) | 823 if (AXObject* obj = getOrCreate(node)) |
810 obj->handleAriaExpandedChanged(); | 824 obj->handleAriaExpandedChanged(); |
811 } | 825 } |
812 | 826 |
813 void AXObjectCache::handleActiveDescendantChanged(Node* node) | 827 void AXObjectCache::handleActiveDescendantChanged(Node* node) |
814 { | 828 { |
815 if (AXObject* obj = getOrCreate(node)) | 829 if (AXObject* obj = getOrCreate(node)) |
816 obj->handleActiveDescendantChanged(); | 830 obj->handleActiveDescendantChanged(); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1034 { | 1048 { |
1035 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); | 1049 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); |
1036 } | 1050 } |
1037 | 1051 |
1038 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) | 1052 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) |
1039 { | 1053 { |
1040 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged) ; | 1054 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged) ; |
1041 } | 1055 } |
1042 | 1056 |
1043 } // namespace WebCore | 1057 } // namespace WebCore |
OLD | NEW |