Title: [97422] trunk/Source/WebKit2
- Revision
- 97422
- Author
- [email protected]
- Date
- 2011-10-13 16:38:32 -0700 (Thu, 13 Oct 2011)
Log Message
[Mac] PDF Documents at epo.org look very blurry
https://bugs.webkit.org/show_bug.cgi?id=70072
Reviewed by Dan Bernstein.
* WebProcess/Plugins/PDF/BuiltInPDFView.cpp: (WebKit::BuiltInPDFView::paintContent):
Ensure integral coordinates. <rdar://problem/10283382> tracks lifting this limitation.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (97421 => 97422)
--- trunk/Source/WebKit2/ChangeLog 2011-10-13 23:37:35 UTC (rev 97421)
+++ trunk/Source/WebKit2/ChangeLog 2011-10-13 23:38:32 UTC (rev 97422)
@@ -1,5 +1,15 @@
2011-10-13 Alexey Proskuryakov <[email protected]>
+ [Mac] PDF Documents at epo.org look very blurry
+ https://bugs.webkit.org/show_bug.cgi?id=70072
+
+ Reviewed by Dan Bernstein.
+
+ * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: (WebKit::BuiltInPDFView::paintContent):
+ Ensure integral coordinates. <rdar://problem/10283382> tracks lifting this limitation.
+
+2011-10-13 Alexey Proskuryakov <[email protected]>
+
[Mac] Wheel event handler counter is incorrect with PDF views
https://bugs.webkit.org/show_bug.cgi?id=70062
Modified: trunk/Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.cpp (97421 => 97422)
--- trunk/Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.cpp 2011-10-13 23:37:35 UTC (rev 97421)
+++ trunk/Source/WebKit2/WebProcess/Plugins/PDF/BuiltInPDFView.cpp 2011-10-13 23:38:32 UTC (rev 97422)
@@ -280,8 +280,8 @@
int pageTop = 0;
for (size_t i = 0; i < m_pageBoxes.size(); ++i) {
IntRect pageBox = m_pageBoxes[i];
- float extraOffsetForCenteringX = max((m_frameRect.width() - pageBox.width()) / 2.0f, 0.0f);
- float extraOffsetForCenteringY = (m_pageBoxes.size() == 1) ? max((m_frameRect.height() - pageBox.height() + shadowOffsetY) / 2.0f, 0.0f) : 0;
+ float extraOffsetForCenteringX = max(roundf((m_frameRect.width() - pageBox.width()) / 2.0f), 0.0f);
+ float extraOffsetForCenteringY = (m_pageBoxes.size() == 1) ? max(roundf((m_frameRect.height() - pageBox.height() + shadowOffsetY) / 2.0f), 0.0f) : 0;
if (pageTop > contentRect.maxY())
break;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes