Changeset 55295 in webkit
- Timestamp:
- Feb 26, 2010 10:54:02 AM (14 years ago)
- Location:
- trunk/WebKit/gtk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/gtk/ChangeLog
r55245 r55295 1 2010-02-19 Alejandro G. Castro <alex@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Some region checks in scroll are not required 6 https://bugs.webkit.org/show_bug.cgi?id=35142 7 8 Removes some of the operations checking the moved and invalidated 9 regions when scrolling, it is done already in 10 gdk_window_move_region. 11 12 * WebCoreSupport/ChromeClientGtk.cpp: 13 1 14 2010-02-25 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 15 -
trunk/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp
r54923 r55295 365 365 // scroll the whole window at once, and we often need to scroll 366 366 // portions of the window only (think frames). 367 GdkRectangle area = clipRect; 368 GdkRectangle moveRect; 369 370 GdkRectangle sourceRect = area; 371 sourceRect.x -= delta.width(); 372 sourceRect.y -= delta.height(); 373 374 GdkRegion* invalidRegion = gdk_region_rectangle(&area); 375 376 if (gdk_rectangle_intersect(&area, &sourceRect, &moveRect)) { 377 GdkRegion* moveRegion = gdk_region_rectangle(&moveRect); 378 gdk_window_move_region(window, moveRegion, delta.width(), delta.height()); 379 gdk_region_offset(moveRegion, delta.width(), delta.height()); 380 gdk_region_subtract(invalidRegion, moveRegion); 381 gdk_region_destroy(moveRegion); 382 } 383 384 gdk_window_invalidate_region(window, invalidRegion, FALSE); 385 gdk_region_destroy(invalidRegion); 367 GdkRectangle moveRect = clipRect; 368 GdkRegion* moveRegion = gdk_region_rectangle(&moveRect); 369 gdk_window_move_region(window, moveRegion, delta.width(), delta.height()); 370 gdk_region_destroy(moveRegion); 386 371 } 387 372
Note: See TracChangeset
for help on using the changeset viewer.