Title: [107017] trunk/Source/WebKit2
- Revision
- 107017
- Author
- timo...@apple.com
- Date
- 2012-02-07 17:28:16 -0800 (Tue, 07 Feb 2012)
Log Message
Initilize the WebPageProxy intrinsicDeviceScaleFactor on creation of the WKView.
If WKView was created and loaded a page with canvas elements before beinging moved
to a window, the canvas elements would be locked in at a pixel ratio of 1. With this
change the WKView will use the main screen's pixel ratio until it moves to a window.
Reviewed by Anders Carlsson.
* UIProcess/API/mac/WKView.mm:
(-[WKView initWithFrame:contextRef:pageGroupRef:]): Call setIntrinsicDeviceScaleFactor.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (107016 => 107017)
--- trunk/Source/WebKit2/ChangeLog 2012-02-08 01:16:40 UTC (rev 107016)
+++ trunk/Source/WebKit2/ChangeLog 2012-02-08 01:28:16 UTC (rev 107017)
@@ -1,3 +1,16 @@
+2012-02-07 Timothy Hatcher <timo...@apple.com>
+
+ Initilize the WebPageProxy intrinsicDeviceScaleFactor on creation of the WKView.
+
+ If WKView was created and loaded a page with canvas elements before beinging moved
+ to a window, the canvas elements would be locked in at a pixel ratio of 1. With this
+ change the WKView will use the main screen's pixel ratio until it moves to a window.
+
+ Reviewed by Anders Carlsson.
+
+ * UIProcess/API/mac/WKView.mm:
+ (-[WKView initWithFrame:contextRef:pageGroupRef:]): Call setIntrinsicDeviceScaleFactor.
+
2012-02-07 Alexey Proskuryakov <a...@apple.com>
Keep a reference in didReceiveInvalidMessage.
Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (107016 => 107017)
--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2012-02-08 01:16:40 UTC (rev 107016)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm 2012-02-08 01:28:16 UTC (rev 107017)
@@ -2736,6 +2736,7 @@
_data->_pageClient = PageClientImpl::create(self);
_data->_page = toImpl(contextRef)->createWebPage(_data->_pageClient.get(), toImpl(pageGroupRef));
_data->_page->initializeWebPage();
+ _data->_page->setIntrinsicDeviceScaleFactor([self _intrinsicDeviceScaleFactor]);
#if ENABLE(FULLSCREEN_API)
_data->_page->fullScreenManager()->setWebView(self);
#endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes