Changeset 112851 in webkit
- Timestamp:
- Apr 2, 2012 3:28:26 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r112850 r112851 1 2012-04-02 Mario Sanchez Prada <msanchez@igalia.com> 2 3 in page anchor and keyboard navigation 4 https://bugs.webkit.org/show_bug.cgi?id=17450 5 6 Reviewed by Chris Fleizach. 7 8 Added new test and expectations. 9 10 * accessibility/anchor-link-selection-and-focus-expected.txt: Added. 11 * accessibility/anchor-link-selection-and-focus.html: Added. 12 * platform/gtk/accessibility/anchor-link-selection-and-focus-expected.txt: Added. 13 * platform/chromium/test_expectations.txt: Skipped test for chromium. 14 1 15 2012-04-02 Philippe Normand <pnormand@igalia.com> 2 16 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r112815 r112851 1276 1276 BUGCR10322 SKIP : platform/mac/accessibility = PASS FAIL 1277 1277 BUGCR10322 SKIP : platform/win/accessibility = PASS FAIL 1278 BUGCR10322 SKIP : accessibility/anchor-link-selection-and-focus.html = TEXT 1278 1279 BUGCR10322 SKIP : accessibility/aria-activedescendant-crash.html = TEXT 1279 1280 BUGCR10322 SKIP : accessibility/aria-combobox.html = TEXT -
trunk/Source/WebCore/ChangeLog
r112845 r112851 1 2012-04-02 Mario Sanchez Prada <msanchez@igalia.com> 2 3 in page anchor and keyboard navigation 4 https://bugs.webkit.org/show_bug.cgi?id=17450 5 6 Reviewed by Chris Fleizach. 7 8 Ensure that the position of the caret and the focused element 9 get updated when following an anchor link. 10 11 The implementation is moved from platform specific files out to 12 AXObjectCache.cpp since it should be a cross-platform valid 13 solution. However, the new code is currently activated for the Mac 14 and GTK ports only, since the windows and chromium ports provide 15 their own specific code, and removing it now might break things. 16 17 Test: accessibility/anchor-link-selection-and-focus.html 18 19 * accessibility/AXObjectCache.cpp: 20 (WebCore): 21 (WebCore::AXObjectCache::handleScrolledToAnchor): Cross-platform 22 implementation of the fix, only activated for Mac and GTK for now. 23 * accessibility/gtk/AXObjectCacheAtk.cpp: Removed the GTK-specific 24 implementation of WebCore::AXObjectCache::handleScrolledToAnchor. 25 * accessibility/mac/AXObjectCacheMac.mm: Removed the Mac-specific 26 implementation of WebCore::AXObjectCache::handleScrolledToAnchor. 27 1 28 2012-04-02 Hayato Ito <hayato@chromium.org> 2 29 -
trunk/Source/WebCore/accessibility/AXObjectCache.cpp
r104350 r112851 55 55 #include "FocusController.h" 56 56 #include "Frame.h" 57 #include "FrameSelection.h" 57 58 #include "HTMLAreaElement.h" 58 59 #include "HTMLImageElement.h" … … 72 73 #include "RenderView.h" 73 74 #include "ScrollView.h" 74 75 #include "TextAffinity.h" 76 #include "htmlediting.h" 75 77 #include <wtf/PassRefPtr.h> 76 78 … … 156 158 return obj; 157 159 } 160 161 #if HAVE(ACCESSIBILITY) && (PLATFORM(MAC) || PLATFORM(GTK)) 162 void AXObjectCache::handleScrolledToAnchor(const Node* node) 163 { 164 ASSERT(node); 165 166 Document* document = node->document(); 167 if (!document) 168 return; 169 170 RefPtr<Node> refNode = const_cast<Node*>(node); 171 document->setFocusedNode(refNode); 172 173 Frame* frame = document->frame(); 174 if (!frame) 175 return; 176 177 FrameSelection* selection = frame->selection(); 178 if (!selection) 179 return; 180 181 Position targetPosition = firstPositionInOrBeforeNode(refNode.get()); 182 selection->moveTo(targetPosition, DOWNSTREAM); 183 } 184 #endif 158 185 159 186 AccessibilityObject* AXObjectCache::get(Widget* widget) -
trunk/Source/WebCore/accessibility/gtk/AXObjectCacheAtk.cpp
r111354 r112851 232 232 } 233 233 234 void AXObjectCache::handleScrolledToAnchor(const Node*)235 {236 }237 238 234 } // namespace WebCore -
trunk/Source/WebCore/accessibility/mac/AXObjectCacheMac.mm
r110823 r112851 145 145 } 146 146 147 void AXObjectCache::handleScrolledToAnchor(const Node*)148 {149 }150 151 147 } 152 148
Note: See TracChangeset
for help on using the changeset viewer.