| 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 { | 833 { |
| 834 if (!isNodeInUse(textMarkerData.node)) | 834 if (!isNodeInUse(textMarkerData.node)) |
| 835 return VisiblePosition(); | 835 return VisiblePosition(); |
| 836 | 836 |
| 837 // FIXME: Accessability should make it clear these are DOM-compliant offsets
or store Position objects. | 837 // FIXME: Accessability should make it clear these are DOM-compliant offsets
or store Position objects. |
| 838 VisiblePosition visiblePos = VisiblePosition(createLegacyEditingPosition(tex
tMarkerData.node, textMarkerData.offset), textMarkerData.affinity); | 838 VisiblePosition visiblePos = VisiblePosition(createLegacyEditingPosition(tex
tMarkerData.node, textMarkerData.offset), textMarkerData.affinity); |
| 839 Position deepPos = visiblePos.deepEquivalent(); | 839 Position deepPos = visiblePos.deepEquivalent(); |
| 840 if (deepPos.isNull()) | 840 if (deepPos.isNull()) |
| 841 return VisiblePosition(); | 841 return VisiblePosition(); |
| 842 | 842 |
| 843 RenderObject* renderer = deepPos.deprecatedNode()->renderer(); | 843 RenderObject* renderer = deepPos.renderer(); |
| 844 if (!renderer) | 844 if (!renderer) |
| 845 return VisiblePosition(); | 845 return VisiblePosition(); |
| 846 | 846 |
| 847 AXObjectCache* cache = renderer->document()->axObjectCache(); | 847 AXObjectCache* cache = renderer->document()->axObjectCache(); |
| 848 if (!cache->isIDinUse(textMarkerData.axID)) | 848 if (!cache->isIDinUse(textMarkerData.axID)) |
| 849 return VisiblePosition(); | 849 return VisiblePosition(); |
| 850 | 850 |
| 851 if (deepPos.deprecatedNode() != textMarkerData.node || deepPos.deprecatedEdi
tingOffset() != textMarkerData.offset) | 851 if (deepPos.deprecatedNode() != textMarkerData.node || deepPos.deprecatedEdi
tingOffset() != textMarkerData.offset) |
| 852 return VisiblePosition(); | 852 return VisiblePosition(); |
| 853 | 853 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) | 1004 void AXObjectCache::handleScrolledToAnchor(const Node* anchorNode) |
| 1005 { | 1005 { |
| 1006 // The anchor node may not be accessible. Post the notification for the | 1006 // The anchor node may not be accessible. Post the notification for the |
| 1007 // first accessible object. | 1007 // first accessible object. |
| 1008 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode(
anchorNode), AXScrolledToAnchor); | 1008 postPlatformNotification(AccessibilityObject::firstAccessibleObjectFromNode(
anchorNode), AXScrolledToAnchor); |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 } // namespace WebCore | 1011 } // namespace WebCore |
| 1012 | 1012 |
| 1013 #endif // HAVE(ACCESSIBILITY) | 1013 #endif // HAVE(ACCESSIBILITY) |
| OLD | NEW |