Title: [114938] branches/subpixellayout/Source
Revision
114938
Author
e...@chromium.org
Date
2012-04-23 13:32:49 -0700 (Mon, 23 Apr 2012)

Log Message

Platform fixes for windows, qt and gtk on branch.

Modified Paths


Diff

Modified: branches/subpixellayout/Source/WebCore/platform/qt/RenderThemeQt.cpp (114937 => 114938)


--- branches/subpixellayout/Source/WebCore/platform/qt/RenderThemeQt.cpp	2012-04-23 20:32:33 UTC (rev 114937)
+++ branches/subpixellayout/Source/WebCore/platform/qt/RenderThemeQt.cpp	2012-04-23 20:32:49 UTC (rev 114938)
@@ -742,7 +742,7 @@
     if (!o->isSlider())
         return false;
 
-    IntRect b = toRenderBox(o)->contentBoxRect();
+    IntRect b = pixelSnappedIntRect(toRenderBox(o)->contentBoxRect());
 
     // Position the outer rectangle
     int top = r.y() + b.y();

Modified: branches/subpixellayout/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp (114937 => 114938)


--- branches/subpixellayout/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp	2012-04-23 20:32:33 UTC (rev 114937)
+++ branches/subpixellayout/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp	2012-04-23 20:32:49 UTC (rev 114938)
@@ -750,7 +750,7 @@
     if (Node* node = hit.innerNonSharedNode()) {
         Frame* frame = node->document()->frame();
         FrameView* view = frame ? frame->view() : 0;
-        m_webView->priv->tooltipArea = view ? view->contentsToWindow(node->getRect()) : IntRect();
+        m_webView->priv->tooltipArea = view ? view->contentsToWindow(node->getPixelSnappedRect()) : IntRect();
     } else
         m_webView->priv->tooltipArea = IntRect();
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to