Changeset 246418 in webkit


Ignore:
Timestamp:
Jun 13, 2019 6:51:09 PM (5 years ago)
Author:
Fujii Hironori
Message:

[WinCairo][WebKitTestRunner] pixel image dump outputs blank images
https://bugs.webkit.org/show_bug.cgi?id=198820

Reviewed by Ross Kirsling.

WebView window paints nothing because it is moved out of the
screen. Send WM_PRINT with memory DC instead of WM_PAINT as well
as DumpRenderTree does.

  • WebKitTestRunner/win/PlatformWebViewWin.cpp:

(WTR::PlatformWebView::windowSnapshotImage): Send WM_PRINT instead of BitBlt.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r246414 r246418  
     12019-06-13  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [WinCairo][WebKitTestRunner] pixel image dump outputs blank images
     4        https://bugs.webkit.org/show_bug.cgi?id=198820
     5
     6        Reviewed by Ross Kirsling.
     7
     8        WebView window paints nothing because it is moved out of the
     9        screen. Send WM_PRINT with memory DC instead of WM_PAINT as well
     10        as DumpRenderTree does.
     11
     12        * WebKitTestRunner/win/PlatformWebViewWin.cpp:
     13        (WTR::PlatformWebView::windowSnapshotImage): Send WM_PRINT instead of BitBlt.
     14
    1152019-06-13  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Tools/WebKitTestRunner/win/PlatformWebViewWin.cpp

    r244443 r246418  
    226226        return nullptr;
    227227
    228     ::InvalidateRect(m_window, nullptr, true);
    229228    ::SelectObject(memoryDC.get(), bitmap.get());
    230     ::BitBlt(memoryDC.get(),
    231         0,
    232         0,
    233         width,
    234         height,
    235         windowDC,
    236         0,
    237         0,
    238         SRCCOPY);
     229    ::SendMessage(m_window, WM_PRINT, reinterpret_cast<WPARAM>(memoryDC.get()), PRF_CLIENT | PRF_CHILDREN | PRF_OWNED);
    239230
    240231    BITMAP bitmapTag { };
Note: See TracChangeset for help on using the changeset viewer.