Changeset 78331 in webkit
- Timestamp:
- Feb 11, 2011 4:53:43 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r78330 r78331 1 2011-02-11 Mario Sanchez Prada <msanchez@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] events missing when a document is (re)loaded 6 https://bugs.webkit.org/show_bug.cgi?id=25831 7 8 Added new layout test to check the right signals are emitted. 9 10 * platform/gtk/accessibility/document-reload-events-expected.txt: Added. 11 * platform/gtk/accessibility/document-reload-events.html: Added. 12 1 13 2011-02-11 Adam Barth <abarth@webkit.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r78328 r78331 1 2011-02-11 Mario Sanchez Prada <msanchez@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] events missing when a document is (re)loaded 6 https://bugs.webkit.org/show_bug.cgi?id=25831 7 8 Make sure webArea returns a proper name and that a signal 9 'state-change::defunct' is emitted when detaching the wrapper. 10 11 Test: platform/gtk/accessibility/document-reload-events.html 12 13 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: 14 (webkit_accessible_get_name): Returns the current document's title 15 as fallback mechanism for webArea objects. 16 (webkit_accessible_detach): Emit 'state-change::defunct' function 17 as soon as the wrapper is detached from the related core object. 18 1 19 2011-02-11 Pavel Feldman <pfeldman@chromium.org> 2 20 -
trunk/Source/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
r78150 r78331 176 176 } 177 177 178 // Try text under the node 178 // Try text under the node. 179 179 String textUnder = renderObject->textUnderElement(); 180 180 if (textUnder.length()) … … 190 190 return returnString(alt); 191 191 } 192 } 193 194 // Fallback for the webArea object: just return the document's title. 195 if (renderObject->isWebArea()) { 196 Document* document = coreObject->document(); 197 if (document) 198 return returnString(document->title()); 192 199 } 193 200 … … 2465 2472 ASSERT(accessible->m_object); 2466 2473 2474 if (core(accessible)->roleValue() == WebAreaRole) 2475 g_signal_emit_by_name(accessible, "state-change", "defunct", true); 2476 2467 2477 // We replace the WebCore AccessibilityObject with a fallback object that 2468 2478 // provides default implementations to avoid repetitive null-checking after -
trunk/Source/WebKit/gtk/ChangeLog
r77971 r78331 1 2011-02-11 Mario Sanchez Prada <msanchez@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] events missing when a document is (re)loaded 6 https://bugs.webkit.org/show_bug.cgi?id=25831 7 8 Emit the right signals when reloading a document. 9 10 * WebCoreSupport/FrameLoaderClientGtk.cpp: 11 (WebKit::notifyAccessibilityStatus): New function, to make sure 12 the signals involved in reloading a document are properly emitted. 13 (WebKit::notifyStatus): Also notify accessibility if enabled. 14 1 15 2011-02-08 Martin Robinson <mrobinson@igalia.com> 2 16 -
trunk/Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r77818 r78331 26 26 #include "FrameLoaderClientGtk.h" 27 27 28 #include "AXObjectCache.h" 28 29 #include "ArchiveResource.h" 29 30 #include "CachedFrame.h" … … 223 224 } 224 225 226 static void notifyAccessibilityStatus(WebKitWebFrame* frame, WebKitLoadStatus loadStatus) 227 { 228 WebKitWebView* webView = getViewFromFrame(frame); 229 if (!webView || frame != webkit_web_view_get_main_frame(webView)) 230 return; 231 232 AtkObject* axObject = gtk_widget_get_accessible(GTK_WIDGET(webView)); 233 if (!axObject || !ATK_IS_DOCUMENT(axObject)) 234 return; 235 236 switch (loadStatus) { 237 case WEBKIT_LOAD_PROVISIONAL: 238 g_signal_emit_by_name(axObject, "state-change", "busy", true); 239 if (core(frame)->loader()->loadType() == FrameLoadTypeReload) 240 g_signal_emit_by_name(axObject, "reload"); 241 break; 242 case WEBKIT_LOAD_FAILED: 243 g_signal_emit_by_name(axObject, "load-stopped"); 244 g_signal_emit_by_name(axObject, "state-change", "busy", false); 245 break; 246 case WEBKIT_LOAD_FINISHED: 247 g_signal_emit_by_name(axObject, "load-complete"); 248 g_signal_emit_by_name(axObject, "state-change", "busy", false); 249 default: 250 break; 251 } 252 } 253 225 254 static void notifyStatus(WebKitWebFrame* frame, WebKitLoadStatus loadStatus) 226 255 { … … 233 262 g_object_notify(G_OBJECT(webView), "load-status"); 234 263 } 264 265 if (AXObjectCache::accessibilityEnabled()) 266 notifyAccessibilityStatus(frame, loadStatus); 235 267 } 236 268
Note: See TracChangeset
for help on using the changeset viewer.