Title: [104049] trunk/Source/WebKit2
Revision
104049
Author
[email protected]
Date
2012-01-04 11:24:38 -0800 (Wed, 04 Jan 2012)

Log Message

        First sentence is missing or clipped when printing a inline PDF
        https://bugs.webkit.org/show_bug.cgi?id=75514
        <rdar://problem/10640680>

        Reviewed by Dan Bernstein.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::headerHeight):
        (WebKit::WebPageProxy::footerHeight):
        (WebKit::WebPageProxy::drawHeader):
        (WebKit::WebPageProxy::drawFooter):
        Do not ask the client about headers and footers when printing a PDF.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (104048 => 104049)


--- trunk/Source/WebKit2/ChangeLog	2012-01-04 19:08:02 UTC (rev 104048)
+++ trunk/Source/WebKit2/ChangeLog	2012-01-04 19:24:38 UTC (rev 104049)
@@ -1,3 +1,18 @@
+2012-01-04  Alexey Proskuryakov  <[email protected]>
+
+        First sentence is missing or clipped when printing a inline PDF
+        https://bugs.webkit.org/show_bug.cgi?id=75514
+        <rdar://problem/10640680>
+
+        Reviewed by Dan Bernstein.
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::headerHeight):
+        (WebKit::WebPageProxy::footerHeight):
+        (WebKit::WebPageProxy::drawHeader):
+        (WebKit::WebPageProxy::drawFooter):
+        Do not ask the client about headers and footers when printing a PDF.
+
 2012-01-04  Alexander Færøy  <[email protected]>
 
         [Qt] Fix test regressions after r104025

Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (104048 => 104049)


--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp	2012-01-04 19:08:02 UTC (rev 104048)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp	2012-01-04 19:24:38 UTC (rev 104049)
@@ -3321,21 +3321,29 @@
 
 float WebPageProxy::headerHeight(WebFrameProxy* frame)
 {
+    if (frame->isDisplayingPDFDocument())
+        return 0;
     return m_uiClient.headerHeight(this, frame);
 }
 
 float WebPageProxy::footerHeight(WebFrameProxy* frame)
 {
+    if (frame->isDisplayingPDFDocument())
+        return 0;
     return m_uiClient.footerHeight(this, frame);
 }
 
 void WebPageProxy::drawHeader(WebFrameProxy* frame, const FloatRect& rect)
 {
+    if (frame->isDisplayingPDFDocument())
+        return;
     m_uiClient.drawHeader(this, frame, rect);
 }
 
 void WebPageProxy::drawFooter(WebFrameProxy* frame, const FloatRect& rect)
 {
+    if (frame->isDisplayingPDFDocument())
+        return;
     m_uiClient.drawFooter(this, frame, rect);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to