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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 } | 839 } |
840 | 840 |
841 void AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates() | 841 void AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates() |
842 { | 842 { |
843 if (!m_computedObjectAttributeCache) | 843 if (!m_computedObjectAttributeCache) |
844 m_computedObjectAttributeCache = AXComputedObjectAttributeCache::create(
); | 844 m_computedObjectAttributeCache = AXComputedObjectAttributeCache::create(
); |
845 } | 845 } |
846 | 846 |
847 void AXObjectCache::stopCachingComputedObjectAttributes() | 847 void AXObjectCache::stopCachingComputedObjectAttributes() |
848 { | 848 { |
849 if (m_computedObjectAttributeCache) | 849 m_computedObjectAttributeCache.clear(); |
850 m_computedObjectAttributeCache.clear(); | |
851 } | 850 } |
852 | 851 |
853 VisiblePosition AXObjectCache::visiblePositionForTextMarkerData(TextMarkerData&
textMarkerData) | 852 VisiblePosition AXObjectCache::visiblePositionForTextMarkerData(TextMarkerData&
textMarkerData) |
854 { | 853 { |
855 if (!isNodeInUse(textMarkerData.node)) | 854 if (!isNodeInUse(textMarkerData.node)) |
856 return VisiblePosition(); | 855 return VisiblePosition(); |
857 | 856 |
858 // FIXME: Accessability should make it clear these are DOM-compliant offsets
or store Position objects. | 857 // FIXME: Accessability should make it clear these are DOM-compliant offsets
or store Position objects. |
859 VisiblePosition visiblePos = VisiblePosition(createLegacyEditingPosition(tex
tMarkerData.node, textMarkerData.offset), textMarkerData.affinity); | 858 VisiblePosition visiblePos = VisiblePosition(createLegacyEditingPosition(tex
tMarkerData.node, textMarkerData.offset), textMarkerData.affinity); |
860 Position deepPos = visiblePos.deepEquivalent(); | 859 Position deepPos = visiblePos.deepEquivalent(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 | 936 |
938 if (!node->isElementNode()) | 937 if (!node->isElementNode()) |
939 return false; | 938 return false; |
940 | 939 |
941 return equalIgnoringCase(toElement(node)->getAttribute(aria_hiddenAttr), "fa
lse"); | 940 return equalIgnoringCase(toElement(node)->getAttribute(aria_hiddenAttr), "fa
lse"); |
942 } | 941 } |
943 | 942 |
944 } // namespace WebCore | 943 } // namespace WebCore |
945 | 944 |
946 #endif // HAVE(ACCESSIBILITY) | 945 #endif // HAVE(ACCESSIBILITY) |
OLD | NEW |