Title: [148719] trunk/Source/WebKit2
Revision
148719
Author
timothy_hor...@apple.com
Date
2013-04-18 18:23:12 -0700 (Thu, 18 Apr 2013)

Log Message

PDFPlugin: Update PDFLayerController's scale factors earlier
https://bugs.webkit.org/show_bug.cgi?id=114843

Reviewed by Simon Fraser.

Inform PDFLayerController of the initial page/device scale factors so that
it renders at the correct scale the first time, instead of first rendering
at 1x and then flashing to 2x (on 2x devices).

* WebProcess/Plugins/PDF/PDFPlugin.mm:
(WebKit::PDFPlugin::pdfDocumentDidLoad):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (148718 => 148719)


--- trunk/Source/WebKit2/ChangeLog	2013-04-19 00:38:28 UTC (rev 148718)
+++ trunk/Source/WebKit2/ChangeLog	2013-04-19 01:23:12 UTC (rev 148719)
@@ -1,5 +1,19 @@
 2013-04-18  Tim Horton  <timothy_hor...@apple.com>
 
+        PDFPlugin: Update PDFLayerController's scale factors earlier
+        https://bugs.webkit.org/show_bug.cgi?id=114843
+
+        Reviewed by Simon Fraser.
+
+        Inform PDFLayerController of the initial page/device scale factors so that
+        it renders at the correct scale the first time, instead of first rendering
+        at 1x and then flashing to 2x (on 2x devices).
+
+        * WebProcess/Plugins/PDF/PDFPlugin.mm:
+        (WebKit::PDFPlugin::pdfDocumentDidLoad):
+
+2013-04-18  Tim Horton  <timothy_hor...@apple.com>
+
         PDFPlugin: Hook up the search-in-Spotlight menu item
         https://bugs.webkit.org/show_bug.cgi?id=114837
         <rdar://problem/13583591>

Modified: trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm (148718 => 148719)


--- trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm	2013-04-19 00:38:28 UTC (rev 148718)
+++ trunk/Source/WebKit2/WebProcess/Plugins/PDF/PDFPlugin.mm	2013-04-19 01:23:12 UTC (rev 148719)
@@ -308,11 +308,11 @@
 
     setPDFDocument(document);
 
+    updatePageAndDeviceScaleFactors();
+
     [m_pdfLayerController.get() setFrameSize:size()];
     m_pdfLayerController.get().document = document.get();
 
-    updatePageAndDeviceScaleFactors();
-
     if (handlesPageScaleFactor())
         pluginView()->setPageScaleFactor([m_pdfLayerController.get() contentScaleFactor], IntPoint());
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to