Title: [112260] branches/subpixellayout/Source/WebCore/loader/SubframeLoader.cpp
- Revision
- 112260
- Author
- [email protected]
- Date
- 2012-03-27 06:22:18 -0700 (Tue, 27 Mar 2012)
Log Message
Plugins are always positioned at integer boundaries, so the size can be rounded. Correcting unnecessary pixel snapping in SubframeLoader.
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/loader/SubframeLoader.cpp (112259 => 112260)
--- branches/subpixellayout/Source/WebCore/loader/SubframeLoader.cpp 2012-03-27 12:45:46 UTC (rev 112259)
+++ branches/subpixellayout/Source/WebCore/loader/SubframeLoader.cpp 2012-03-27 13:22:18 UTC (rev 112260)
@@ -171,7 +171,7 @@
IntSize size;
if (renderer)
- size = renderer->contentBoxRect().pixelSnappedSize();
+ size = roundedIntSize(renderer->contentBoxRect());
else if (mediaElement->isVideo())
size = RenderVideo::defaultSize();
@@ -360,7 +360,7 @@
if (!frameLoader->checkIfRunInsecureContent(document()->securityOrigin(), url))
return false;
- IntSize contentSize = renderer->contentBoxRect().pixelSnappedSize();
+ IntSize contentSize = roundedIntSize(renderer->contentBoxRect().size());
bool loadManually = document()->isPluginDocument() && !m_containsPlugins && toPluginDocument(document())->shouldLoadPluginManually();
RefPtr<Widget> widget = frameLoader->client()->createPlugin(contentSize,
pluginElement, url, paramNames, paramValues, mimeType, loadManually);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes