Hook up WM_PRINT to the new drawing area
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Feb 2011 12:40:47 +0000 (12:40 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Feb 2011 12:40:47 +0000 (12:40 +0000)
commit65eeb1554ddbab243aca24bf58da319033ba7384
tree36e2830f074ac88c97baf7542ed1504d03cadc10
parentaa4618f27f306a222b37d0bfa081bc4a167360fe
Hook up WM_PRINT to the new drawing area

Fixes <http://webkit.org/b/54145> <rdar://problem/8979559> WM_PRINT doesn't work with new
drawing area (assertion failure in DrawingAreaProxyImpl in Debug builds)

Reviewed by Darin Adler.

Source/WebKit2:

* UIProcess/win/WebView.cpp:
(WebKit::WebView::paint): Added. Code came from onPaintEvent.

(WebKit::WebView::onPaintEvent):
(WebKit::WebView::onPrintClientEvent):
Changed to call paint.

* UIProcess/win/WebView.h: Added paint. Also separated message handler functions into their
own paragraph.

Tools:

Test that WM_PRINT doesn't trigger an assertion

* TestWebKitAPI/Tests/WebKit2/win/WMPrint.cpp: Added.
(TestWebKitAPI::TEST): Send a WM_PRINT message to a WKView.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@78200 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/win/WebView.cpp
Source/WebKit2/UIProcess/win/WebView.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKit2/win/WMPrint.cpp [new file with mode: 0644]