Changeset 71198 in webkit
- Timestamp:
- Nov 2, 2010 6:20:46 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r71197 r71198 1 2010-11-02 Chris Guillory <chris.guillory@google.com> 2 3 Reviewed by Chris Fleizach. 4 5 Chromium: Propagate a document value changed notification on scroll. 6 https://bugs.webkit.org/show_bug.cgi?id=48817 7 8 * platform/chromium/accessibility/post-notification-ValueChanged-expected.txt: 9 * platform/chromium/accessibility/post-notification-ValueChanged.html: 10 1 11 2010-11-02 Dmitry Titov <dimich@chromium.org> 2 12 -
trunk/LayoutTests/platform/chromium/accessibility/post-notification-ValueChanged-expected.txt
r68240 r71198 1 AccessibilityNotification - ValueChanged 1 2 AccessibilityNotification - ValueChanged - id:text-for-ValueChanged 2 3 AccessibilityNotification - LoadComplete -
trunk/LayoutTests/platform/chromium/accessibility/post-notification-ValueChanged.html
r67498 r71198 3 3 <script> 4 4 function testNotification() { 5 document.getElementById("text-for-ValueChanged").value = "button" 5 // Scroll the window which should generate an accessibility value changed 6 // notification for top document's vertical scrollbar. 7 if (window.eventSender) 8 window.eventSender.keyDown("pageDown"); 9 10 document.getElementById("text-for-ValueChanged").value = "button"; 6 11 } 7 12 </script> 8 13 </head> 9 <body onload="test()" >14 <body onload="test()" style="height:200%;"> 10 15 This tests that chromium correctly recieves the ValueChanged notification. 11 16 -
trunk/WebCore/ChangeLog
r71195 r71198 1 2010-11-02 Chris Guillory <chris.guillory@google.com> 2 3 Reviewed by Chris Fleizach. 4 5 Chromium: Propagate a document value changed notification on scroll. 6 https://bugs.webkit.org/show_bug.cgi?id=48817 7 8 * accessibility/AccessibilityObject.h: 9 (WebCore::AccessibilityObject::isAccessibilityScrollbar): 10 * accessibility/AccessibilityScrollbar.h: 11 (WebCore::AccessibilityScrollbar::scrollbar): 12 (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar): 13 * accessibility/chromium/AXObjectCacheChromium.cpp: 14 (WebCore::AXObjectCache::postPlatformNotification): 15 1 16 2010-11-02 Chris Rogers <crogers@google.com> 2 17 -
trunk/WebCore/accessibility/AccessibilityObject.h
r70554 r71198 260 260 261 261 virtual bool isAccessibilityRenderObject() const { return false; } 262 virtual bool isAccessibilityScrollbar() const { return false; } 262 263 virtual bool isAnchor() const { return false; } 263 264 virtual bool isAttachment() const { return false; } -
trunk/WebCore/accessibility/AccessibilityScrollbar.h
r53644 r71198 42 42 void setScrollbar(Scrollbar* scrollbar) { m_scrollbar = scrollbar; } 43 43 44 Scrollbar* scrollbar() const { return m_scrollbar; } 45 46 virtual bool isAccessibilityScrollbar() const { return true; } 47 44 48 virtual AccessibilityRole roleValue() const { return ScrollBarRole; } 45 49 -
trunk/WebCore/accessibility/chromium/AXObjectCacheChromium.cpp
r68240 r71198 28 28 #include "AXObjectCache.h" 29 29 #include "AccessibilityObject.h" 30 #include "AccessibilityScrollbar.h" 30 31 #include "Chrome.h" 31 32 #include "ChromeClient.h" 32 33 #include "FrameView.h" 34 #include "Scrollbar.h" 33 35 34 36 namespace WebCore { … … 48 50 void AXObjectCache::postPlatformNotification(AccessibilityObject* obj, AXNotification notification) 49 51 { 52 if (obj->isAccessibilityScrollbar() && notification == AXValueChanged) { 53 // Send document value changed on scrollbar value changed notification. 54 Scrollbar* scrollBar = static_cast<AccessibilityScrollbar*>(obj)->scrollbar(); 55 if (!scrollBar || !scrollBar->parent() || !scrollBar->parent()->isFrameView()) 56 return; 57 Document* document = static_cast<FrameView*>(scrollBar->parent())->frame()->document(); 58 if (document != document->topDocument()) 59 return; 60 obj = get(document->renderer()); 61 } 62 50 63 if (!obj || !obj->document() || !obj->documentFrameView() || !obj->documentFrameView()->frame() || !obj->documentFrameView()->frame()->page()) 51 64 return; -
trunk/WebKit/chromium/ChangeLog
r71186 r71198 1 2010-11-02 Chris Guillory <chris.guillory@google.com> 2 3 Reviewed by Chris Fleizach. 4 5 Chromium: Propagate a document value changed notification on scroll. 6 https://bugs.webkit.org/show_bug.cgi?id=48817 7 8 * src/WebAccessibilityObject.cpp: 9 (WebKit::WebAccessibilityObject::boundingBoxRect): 10 1 11 2010-10-29 John Abd-El-Malek <jam@chromium.org> 2 12 -
trunk/WebKit/chromium/src/WebAccessibilityObject.cpp
r67418 r71198 352 352 353 353 m_private->updateBackingStore(); 354 return m_private-> documentFrameView()->contentsToWindow(m_private->boundingBoxRect());354 return m_private->boundingBoxRect(); 355 355 } 356 356
Note: See TracChangeset
for help on using the changeset viewer.