Changeset 83271 in webkit
- Timestamp:
- Apr 8, 2011 2:15:17 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/gtk/ChangeLog
r83185 r83271 1 2011-04-08 Mario Sanchez Prada <msanchez@igalia.com> 2 3 Reviewed by Martin Robinson. 4 5 [GTK] Implement increment() and decrement() functions in DRT's AccessibilityUIElement 6 https://bugs.webkit.org/show_bug.cgi?id=58039 7 8 Implemented missing functions in GTK's DRT. 9 10 * WebCoreSupport/DumpRenderTreeSupportGtk.h: 11 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: 12 (modifyAccessibilityValue): Helper function to increment or decrement 13 the current value for an object through the AccessibilityObject's API. 14 (DumpRenderTreeSupportGtk::incrementAccessibilityValue): New function, 15 to be used from GTK's DRT. 16 (DumpRenderTreeSupportGtk::decrementAccessibilityValue): Ditto. 17 1 18 2011-04-06 Gustavo Noronha Silva <gns@gnome.org> 2 19 -
trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp
r82774 r83271 680 680 } 681 681 682 static void modifyAccessibilityValue(AtkObject* axObject, bool increment) 683 { 684 if (!axObject || !WEBKIT_IS_ACCESSIBLE(axObject)) 685 return; 686 687 AccessibilityObject* coreObject = webkit_accessible_get_accessibility_object(WEBKIT_ACCESSIBLE(axObject)); 688 if (!coreObject) 689 return; 690 691 if (increment) 692 coreObject->increment(); 693 else 694 coreObject->decrement(); 695 } 696 697 void DumpRenderTreeSupportGtk::incrementAccessibilityValue(AtkObject* axObject) 698 { 699 modifyAccessibilityValue(axObject, true); 700 } 701 702 void DumpRenderTreeSupportGtk::decrementAccessibilityValue(AtkObject* axObject) 703 { 704 modifyAccessibilityValue(axObject, false); 705 } 706 682 707 void DumpRenderTreeSupportGtk::setAutofilled(JSContextRef context, JSValueRef nodeObject, bool autofilled) 683 708 { -
trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h
r82774 r83271 101 101 static void setMinimumTimerInterval(WebKitWebView*, double); 102 102 103 // Accessibility 104 static void incrementAccessibilityValue(AtkObject*); 105 static void decrementAccessibilityValue(AtkObject*); 106 103 107 // GC 104 108 static void gcCollectJavascriptObjects(); -
trunk/Tools/ChangeLog
r83270 r83271 1 2011-04-08 Mario Sanchez Prada <msanchez@igalia.com> 2 3 Reviewed by Martin Robinson. 4 5 [GTK] Implement increment() and decrement() functions in DRT's AccessibilityUIElement 6 https://bugs.webkit.org/show_bug.cgi?id=58039 7 8 Implement missing functions in GTK's DRT. 9 10 * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: 11 (AccessibilityUIElement::increment): Implemented. 12 (AccessibilityUIElement::decrement): Implemented. 13 1 14 2011-04-08 Dominic Cooney <dominicc@google.com> 2 15 -
trunk/Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp
r75009 r83271 27 27 #include "config.h" 28 28 #include "AccessibilityUIElement.h" 29 29 30 #include "GOwnPtr.h" 30 31 #include "GRefPtr.h" 31 32 #include "WebCoreSupport/DumpRenderTreeSupportGtk.h" 32 33 #include <JavaScriptCore/JSStringRef.h> 33 #include <wtf/Assertions.h>34 35 34 #include <atk/atk.h> 36 35 #include <gtk/gtk.h> 37 36 #include <wtf/Assertions.h> 38 37 39 38 AccessibilityUIElement::AccessibilityUIElement(PlatformUIElement element) … … 573 572 void AccessibilityUIElement::increment() 574 573 { 575 // FIXME: implement 574 if (!m_element) 575 return; 576 577 ASSERT(ATK_IS_OBJECT(m_element)); 578 DumpRenderTreeSupportGtk::incrementAccessibilityValue(ATK_OBJECT(m_element)); 576 579 } 577 580 578 581 void AccessibilityUIElement::decrement() 579 582 { 580 // FIXME: implement 583 if (!m_element) 584 return; 585 586 ASSERT(ATK_IS_OBJECT(m_element)); 587 DumpRenderTreeSupportGtk::decrementAccessibilityValue(ATK_OBJECT(m_element)); 581 588 } 582 589
Note: See TracChangeset
for help on using the changeset viewer.