Changeset 55295 in webkit


Ignore:
Timestamp:
Feb 26, 2010 10:54:02 AM (14 years ago)
Author:
alex
Message:

[GTK] Some region checks in scroll are not required
https://bugs.webkit.org/show_bug.cgi?id=35142

Reviewed by Xan Lopez.

Removes some of the operations checking the moved and invalidated
regions when scrolling, it is done already in
gdk_window_move_region.

  • WebCoreSupport/ChromeClientGtk.cpp:
Location:
trunk/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/gtk/ChangeLog

    r55245 r55295  
     12010-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
    1142010-02-25  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    215
  • trunk/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp

    r54923 r55295  
    365365    // scroll the whole window at once, and we often need to scroll
    366366    // 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);
    386371}
    387372
Note: See TracChangeset for help on using the changeset viewer.