Web Inspector: take page scale factor into account when updating overlay.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 16:42:23 +0000 (16:42 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 16:42:23 +0000 (16:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=108831

Reviewed by Vsevolod Vlasov.

Otherwise, the ports that use page scale factor have broken overlay.

* inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::update):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141772 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorOverlay.cpp

index c4c88dd..73b5501 100644 (file)
@@ -1,3 +1,15 @@
+2013-02-04  Pavel Feldman  <pfeldman@chromium.org>
+
+        Web Inspector: take page scale factor into account when updating overlay.
+        https://bugs.webkit.org/show_bug.cgi?id=108831
+
+        Reviewed by Vsevolod Vlasov.
+
+        Otherwise, the ports that use page scale factor have broken overlay.
+
+        * inspector/InspectorOverlay.cpp:
+        (WebCore::InspectorOverlay::update):
+
 2013-02-04  Dan Carney  <dcarney@google.com>
 
         [v8] explicit isolate parameter for MakeWeak calls
index e14fc09..ce07268 100644 (file)
@@ -285,6 +285,8 @@ void InspectorOverlay::update()
     IntSize viewportSize = enclosingIntRect(view->visibleContentRect()).size();
     IntSize frameViewFullSize = enclosingIntRect(view->visibleContentRect(true)).size();
     IntSize size = m_size.isEmpty() ? frameViewFullSize : m_size;
+    overlayPage()->setPageScaleFactor(m_page->pageScaleFactor(), IntPoint());
+    size.scale(m_page->pageScaleFactor());
     overlayView->resize(size);
 
     // Clear canvas and paint things.