Changeset 95940 in webkit
- Timestamp:
- Sep 26, 2011 5:06:02 AM (13 years ago)
- Location:
- trunk/Source/WebKit/gtk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/gtk/ChangeLog
r95919 r95940 1 2011-09-26 Gustavo Noronha Silva <gustavo.noronha@collabora.com> 2 3 REGRESSION: Empathy crashes when switching theme 4 https://bugs.webkit.org/show_bug.cgi?id=68600 5 6 Reviewed by Martin Robinson. 7 8 * webkit/webkitwebview.cpp: 9 (webkit_web_view_set_scroll_adjustments): use the existing 10 set{Horizontal,Vertical}Adjustment functions, so the code is not 11 duplicated 12 (webkit_web_view_dispose): unset the adjustments during dispose, 13 to avoid late adjustment change notifications hitting the 14 adjustment watcher 15 1 16 2011-09-24 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp
r95271 r95940 428 428 } 429 429 430 #ifndef GTK_API_VERSION_2431 430 static void setHorizontalAdjustment(WebKitWebView* webView, GtkAdjustment* adjustment) 432 431 { … … 445 444 } 446 445 446 #ifndef GTK_API_VERSION_2 447 447 static GtkAdjustment* getHorizontalAdjustment(WebKitWebView* webView) 448 448 { … … 1040 1040 static void webkit_web_view_set_scroll_adjustments(WebKitWebView* webView, GtkAdjustment* horizontalAdjustment, GtkAdjustment* verticalAdjustment) 1041 1041 { 1042 // This may be called after the page has been destroyed, in which case we do nothing. 1043 Page* page = core(webView); 1044 if (!page) 1045 return; 1046 1047 WebKit::ChromeClient* client = static_cast<WebKit::ChromeClient*>(page->chrome()->client()); 1048 client->adjustmentWatcher()->setHorizontalAdjustment(horizontalAdjustment); 1049 client->adjustmentWatcher()->setVerticalAdjustment(verticalAdjustment); 1042 setHorizontalAdjustment(webView, horizontalAdjustment); 1043 setVerticalAdjustment(webView, verticalAdjustment); 1050 1044 } 1051 1045 #endif … … 1307 1301 1308 1302 priv->disposing = TRUE; 1303 1304 // Make sure GtkAdjustmentWatcher won't be reacting to adjustment changes after the 1305 // WebView is destroyed. 1306 setHorizontalAdjustment(webView, 0); 1307 setVerticalAdjustment(webView, 0); 1309 1308 1310 1309 // These smart pointers are cleared manually, because some cleanup operations are
Note: See TracChangeset
for help on using the changeset viewer.