Changeset 96414 in webkit


Ignore:
Timestamp:
Sep 30, 2011 12:34:33 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Only save the current viewport in PixelDumpSupportEfl.
https://bugs.webkit.org/show_bug.cgi?id=68450

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-09-30
Reviewed by Antonio Gomes.

The previous implementation saved the whole page contents in the final
PNG, however the baselines and expectations in the tree only want the
current viewport (with a scrollbar, if needed), so we now only save the
currently visible contents.

  • DumpRenderTree/efl/PixelDumpSupportEfl.cpp:

(createBitmapContextFromWebView): Use
ewk_frame_visible_content_geometry_get instead of
ewk_frame_contents_size_get.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r96411 r96414  
     12011-09-30  Raphael Kubo da Costa  <kubo@profusion.mobi>
     2
     3        [EFL] Only save the current viewport in PixelDumpSupportEfl.
     4        https://bugs.webkit.org/show_bug.cgi?id=68450
     5
     6        Reviewed by Antonio Gomes.
     7
     8        The previous implementation saved the whole page contents in the final
     9        PNG, however the baselines and expectations in the tree only want the
     10        current viewport (with a scrollbar, if needed), so we now only save the
     11        currently visible contents.
     12
     13        * DumpRenderTree/efl/PixelDumpSupportEfl.cpp:
     14        (createBitmapContextFromWebView): Use
     15        ewk_frame_visible_content_geometry_get instead of
     16        ewk_frame_contents_size_get.
     17
    1182011-09-30  Raphael Kubo da Costa  <kubo@profusion.mobi>
    219
  • trunk/Tools/DumpRenderTree/efl/PixelDumpSupportEfl.cpp

    r90605 r96414  
    4242    Ewk_View_Private_Data* privateData = static_cast<Ewk_View_Private_Data*>(smartData->_priv);
    4343
    44     int width, height;
    45     if (!ewk_frame_contents_size_get(mainFrame, &width, &height))
     44    int x, y, width, height;
     45    if (!ewk_frame_visible_content_geometry_get(mainFrame, EINA_TRUE, &x, &y, &width, &height))
    4646        return 0;
    4747
     
    4949    RefPtr<cairo_t> context = adoptRef(cairo_create(surface.get()));
    5050
    51     const Eina_Rectangle rect = { 0, 0, width, height };
    52     if (!ewk_view_paint_contents(privateData, context.get(), &rect))
     51    const Eina_Rectangle rect = { x, y, width, height };
     52    if (!ewk_view_paint(privateData, context.get(), &rect))
    5353        return 0;
    5454
Note: See TracChangeset for help on using the changeset viewer.