Changeset 96414 in webkit
- Timestamp:
- Sep 30, 2011 12:34:33 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r96411 r96414 1 2011-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 1 18 2011-09-30 Raphael Kubo da Costa <kubo@profusion.mobi> 2 19 -
trunk/Tools/DumpRenderTree/efl/PixelDumpSupportEfl.cpp
r90605 r96414 42 42 Ewk_View_Private_Data* privateData = static_cast<Ewk_View_Private_Data*>(smartData->_priv); 43 43 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)) 46 46 return 0; 47 47 … … 49 49 RefPtr<cairo_t> context = adoptRef(cairo_create(surface.get())); 50 50 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)) 53 53 return 0; 54 54
Note: See TracChangeset
for help on using the changeset viewer.