<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[163931] trunk/Source</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/163931">163931</a></dd>
<dt>Author</dt> <dd>zalan@apple.com</dd>
<dt>Date</dt> <dd>2014-02-11 19:28:43 -0800 (Tue, 11 Feb 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Subpixel rendering: Make GraphicsLayerClient::paintContents's clip rect subpixel based.
https://bugs.webkit.org/show_bug.cgi?id=128460
Reviewed by Simon Fraser.
GraphicsClient::paintContents takes clipRect as FloatRect now so that we can paint on
subpixel position.
No change in functionality.
Source/WebCore:
* platform/graphics/GraphicsLayerClient.h:
* platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
(WebCore::CompositingCoordinator::paintContents):
* platform/graphics/texmap/coordinated/CompositingCoordinator.h:
* rendering/RenderLayer.cpp:
(WebCore::cornerRect):
(WebCore::RenderLayer::scrollCornerRect):
(WebCore::resizerCornerRect):
(WebCore::RenderLayer::scrollCornerAndResizerRect):
(WebCore::RenderLayer::verticalScrollbarStart):
(WebCore::RenderLayer::horizontalScrollbarStart):
(WebCore::RenderLayer::paintResizer):
(WebCore::RenderLayer::hitTestOverflowControls):
* rendering/RenderLayer.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::paintIntoLayer):
(WebCore::RenderLayerBacking::paintContents):
* rendering/RenderLayerBacking.h:
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::paintContents):
* rendering/RenderLayerCompositor.h:
* rendering/RenderWidget.cpp:
(WebCore::RenderWidget::paint):
Source/WebKit/gtk:
* WebCoreSupport/AcceleratedCompositingContext.h:
* WebCoreSupport/AcceleratedCompositingContextGL.cpp:
(WebKit::AcceleratedCompositingContext::paintContents):
Source/WebKit/win:
* WebView.cpp:
(WebView::paintContents):
* WebView.h:
Source/WebKit2:
* WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
(WebKit::LayerTreeHostGtk::paintContents):
* WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::paintContents):
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::paintContents):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsGraphicsLayerClienth">trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapcoordinatedCompositingCoordinatorcpp">trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapcoordinatedCompositingCoordinatorh">trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayercpp">trunk/Source/WebCore/rendering/RenderLayer.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerBackingcpp">trunk/Source/WebCore/rendering/RenderLayerBacking.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerBackingh">trunk/Source/WebCore/rendering/RenderLayerBacking.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerCompositorcpp">trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerCompositorh">trunk/Source/WebCore/rendering/RenderLayerCompositor.h</a></li>
<li><a href="#trunkSourceWebKitgtkChangeLog">trunk/Source/WebKit/gtk/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitgtkWebCoreSupportAcceleratedCompositingContexth">trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContext.h</a></li>
<li><a href="#trunkSourceWebKitgtkWebCoreSupportAcceleratedCompositingContextGLcpp">trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp</a></li>
<li><a href="#trunkSourceWebKitwinChangeLog">trunk/Source/WebKit/win/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitwinWebViewcpp">trunk/Source/WebKit/win/WebView.cpp</a></li>
<li><a href="#trunkSourceWebKitwinWebViewh">trunk/Source/WebKit/win/WebView.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagegtkLayerTreeHostGtkcpp">trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagegtkLayerTreeHostGtkh">trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacRemoteLayerTreeDrawingAreah">trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacRemoteLayerTreeDrawingAreamm">trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacTiledCoreAnimationDrawingAreah">trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacTiledCoreAnimationDrawingAreamm">trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/ChangeLog        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -1,3 +1,39 @@
</span><ins>+2014-02-11 Zalan Bujtas <zalan@apple.com>
+
+ Subpixel rendering: Make GraphicsLayerClient::paintContents's clip rect subpixel based.
+ https://bugs.webkit.org/show_bug.cgi?id=128460
+
+ Reviewed by Simon Fraser.
+
+ GraphicsClient::paintContents takes clipRect as FloatRect now so that we can paint on
+ subpixel position.
+
+ No change in functionality.
+
+ * platform/graphics/GraphicsLayerClient.h:
+ * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
+ (WebCore::CompositingCoordinator::paintContents):
+ * platform/graphics/texmap/coordinated/CompositingCoordinator.h:
+ * rendering/RenderLayer.cpp:
+ (WebCore::cornerRect):
+ (WebCore::RenderLayer::scrollCornerRect):
+ (WebCore::resizerCornerRect):
+ (WebCore::RenderLayer::scrollCornerAndResizerRect):
+ (WebCore::RenderLayer::verticalScrollbarStart):
+ (WebCore::RenderLayer::horizontalScrollbarStart):
+ (WebCore::RenderLayer::paintResizer):
+ (WebCore::RenderLayer::hitTestOverflowControls):
+ * rendering/RenderLayer.h:
+ * rendering/RenderLayerBacking.cpp:
+ (WebCore::RenderLayerBacking::paintIntoLayer):
+ (WebCore::RenderLayerBacking::paintContents):
+ * rendering/RenderLayerBacking.h:
+ * rendering/RenderLayerCompositor.cpp:
+ (WebCore::RenderLayerCompositor::paintContents):
+ * rendering/RenderLayerCompositor.h:
+ * rendering/RenderWidget.cpp:
+ (WebCore::RenderWidget::paint):
+
</ins><span class="cx"> 2014-02-11 Antti Koivisto <antti@apple.com>
</span><span class="cx">
</span><span class="cx"> GIF animations should be suspended when outside of viewport
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsGraphicsLayerClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -29,6 +29,7 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx">
</span><span class="cx"> class FloatPoint;
</span><ins>+class FloatRect;
</ins><span class="cx"> class GraphicsContext;
</span><span class="cx"> class GraphicsLayer;
</span><span class="cx"> class IntPoint;
</span><span class="lines">@@ -70,7 +71,7 @@
</span><span class="cx"> // Notification that this layer requires a flush before the next display refresh.
</span><span class="cx"> virtual void notifyFlushBeforeDisplayRefresh(const GraphicsLayer*) { }
</span><span class="cx">
</span><del>- virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& inClip) = 0;
</del><ins>+ virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& inClip) = 0;
</ins><span class="cx"> virtual void didCommitChangesForLayer(const GraphicsLayer*) const { }
</span><span class="cx">
</span><span class="cx"> // Provides current transform (taking transform-origin and animations into account). Input matrix has been
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapcoordinatedCompositingCoordinatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.cpp        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -253,9 +253,9 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-void CompositingCoordinator::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const IntRect& clipRect)
</del><ins>+void CompositingCoordinator::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const FloatRect& clipRect)
</ins><span class="cx"> {
</span><del>- m_client->paintLayerContents(graphicsLayer, graphicsContext, clipRect);
</del><ins>+ m_client->paintLayerContents(graphicsLayer, graphicsContext, enclosingIntRect(clipRect));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> std::unique_ptr<GraphicsLayer> CompositingCoordinator::createGraphicsLayer(GraphicsLayerClient* client)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapcoordinatedCompositingCoordinatorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/platform/graphics/texmap/coordinated/CompositingCoordinator.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -91,7 +91,7 @@
</span><span class="cx"> // GraphicsLayerClient
</span><span class="cx"> virtual void notifyAnimationStarted(const GraphicsLayer*, double time) override;
</span><span class="cx"> virtual void notifyFlushRequired(const GraphicsLayer*) override;
</span><del>- virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& clipRect) override;
</del><ins>+ virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& clipRect) override;
</ins><span class="cx"> virtual float deviceScaleFactor() const override;
</span><span class="cx"> virtual float pageScaleFactor() const override;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.cpp        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -2699,7 +2699,7 @@
</span><span class="cx"> {
</span><span class="cx"> RenderBox* box = renderBox();
</span><span class="cx"> if (!box)
</span><del>- return IntRect();
</del><ins>+ return LayoutRect();
</ins><span class="cx"> LayoutRect scrollCornerAndResizer = scrollCornerRect();
</span><span class="cx"> if (scrollCornerAndResizer.isEmpty())
</span><span class="cx"> scrollCornerAndResizer = resizerCornerRect(this, box->borderBoxRect());
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -2127,8 +2127,8 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void RenderLayerBacking::paintIntoLayer(const GraphicsLayer* graphicsLayer, GraphicsContext* context,
</span><del>- const IntRect& paintDirtyRect, // In the coords of rootLayer.
- PaintBehavior paintBehavior, GraphicsLayerPaintingPhase paintingPhase)
</del><ins>+ const LayoutRect& paintDirtyRect, // In the coords of rootLayer.
+ PaintBehavior paintBehavior, GraphicsLayerPaintingPhase paintingPhase)
</ins><span class="cx"> {
</span><span class="cx"> if (paintsIntoWindow() || paintsIntoCompositedAncestor()) {
</span><span class="cx"> #if !PLATFORM(IOS)
</span><span class="lines">@@ -2186,13 +2186,17 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Up-call from compositing layer drawing callback.
</span><del>-void RenderLayerBacking::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhase paintingPhase, const IntRect& clip)
</del><ins>+void RenderLayerBacking::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhase paintingPhase, const FloatRect& clip)
</ins><span class="cx"> {
</span><span class="cx"> #ifndef NDEBUG
</span><span class="cx"> if (Page* page = renderer().frame().page())
</span><span class="cx"> page->setIsPainting(true);
</span><span class="cx"> #endif
</span><span class="cx">
</span><ins>+ // The dirtyRect is in the coords of the painting root.
+ LayoutRect dirtyRect(clip);
+ IntRect pixelSnappedRectForIntegralPositionedItems = pixelSnappedIntRect(dirtyRect);
+
</ins><span class="cx"> if (graphicsLayer == m_graphicsLayer.get()
</span><span class="cx"> || graphicsLayer == m_foregroundLayer.get()
</span><span class="cx"> || graphicsLayer == m_backgroundLayer.get()
</span><span class="lines">@@ -2200,24 +2204,22 @@
</span><span class="cx"> || graphicsLayer == m_scrollingContentsLayer.get()) {
</span><span class="cx"> InspectorInstrumentation::willPaint(&renderer());
</span><span class="cx">
</span><del>- // The dirtyRect is in the coords of the painting root.
- IntRect dirtyRect = clip;
</del><span class="cx"> if (!(paintingPhase & GraphicsLayerPaintOverflowContents))
</span><span class="cx"> dirtyRect.intersect(enclosingIntRect(compositedBoundsIncludingMargin()));
</span><span class="cx">
</span><span class="cx"> // We have to use the same root as for hit testing, because both methods can compute and cache clipRects.
</span><span class="cx"> paintIntoLayer(graphicsLayer, &context, dirtyRect, PaintBehaviorNormal, paintingPhase);
</span><span class="cx">
</span><del>- InspectorInstrumentation::didPaint(&renderer(), &context, clip);
</del><ins>+ InspectorInstrumentation::didPaint(&renderer(), &context, dirtyRect);
</ins><span class="cx"> } else if (graphicsLayer == layerForHorizontalScrollbar()) {
</span><del>- paintScrollbar(m_owningLayer.horizontalScrollbar(), context, clip);
</del><ins>+ paintScrollbar(m_owningLayer.horizontalScrollbar(), context, pixelSnappedRectForIntegralPositionedItems);
</ins><span class="cx"> } else if (graphicsLayer == layerForVerticalScrollbar()) {
</span><del>- paintScrollbar(m_owningLayer.verticalScrollbar(), context, clip);
</del><ins>+ paintScrollbar(m_owningLayer.verticalScrollbar(), context, pixelSnappedRectForIntegralPositionedItems);
</ins><span class="cx"> } else if (graphicsLayer == layerForScrollCorner()) {
</span><span class="cx"> const LayoutRect& scrollCornerAndResizer = m_owningLayer.scrollCornerAndResizerRect();
</span><span class="cx"> context.save();
</span><span class="cx"> context.translate(-scrollCornerAndResizer.x(), -scrollCornerAndResizer.y());
</span><del>- LayoutRect transformedClip = clip;
</del><ins>+ LayoutRect transformedClip = LayoutRect(clip);
</ins><span class="cx"> transformedClip.moveBy(scrollCornerAndResizer.location());
</span><span class="cx"> m_owningLayer.paintScrollCorner(&context, IntPoint(), pixelSnappedIntRect(transformedClip));
</span><span class="cx"> m_owningLayer.paintResizer(&context, IntPoint(), transformedClip);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -165,7 +165,7 @@
</span><span class="cx"> virtual void notifyFlushRequired(const GraphicsLayer*) override;
</span><span class="cx"> virtual void notifyFlushBeforeDisplayRefresh(const GraphicsLayer*) override;
</span><span class="cx">
</span><del>- virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& clip) override;
</del><ins>+ virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect& clip) override;
</ins><span class="cx">
</span><span class="cx"> virtual float deviceScaleFactor() const override;
</span><span class="cx"> virtual float contentsScaleMultiplierForNewTiles(const GraphicsLayer*) const override;
</span><span class="lines">@@ -283,7 +283,7 @@
</span><span class="cx"> bool hasTiledBackingFlatteningLayer() const { return (m_childContainmentLayer && m_usingTiledCacheLayer); }
</span><span class="cx"> GraphicsLayer* tileCacheFlatteningLayer() const { return m_usingTiledCacheLayer ? m_childContainmentLayer.get() : 0; }
</span><span class="cx">
</span><del>- void paintIntoLayer(const GraphicsLayer*, GraphicsContext*, const IntRect& paintDirtyRect, PaintBehavior, GraphicsLayerPaintingPhase);
</del><ins>+ void paintIntoLayer(const GraphicsLayer*, GraphicsContext*, const LayoutRect& paintDirtyRect, PaintBehavior, GraphicsLayerPaintingPhase);
</ins><span class="cx">
</span><span class="cx"> // Helper function for updateGraphicsLayerGeometry.
</span><span class="cx"> void adjustAncestorCompositingBoundsForFlowThread(IntRect& ancestorCompositingBounds, const RenderLayer* compositingAncestor) const;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerCompositorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -2608,17 +2608,18 @@
</span><span class="cx"> context.restore();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void RenderLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhase, const IntRect& clip)
</del><ins>+void RenderLayerCompositor::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& context, GraphicsLayerPaintingPhase, const FloatRect& clip)
</ins><span class="cx"> {
</span><ins>+ IntRect pixelSnappedRectForIntegralPositionedItems = pixelSnappedIntRect(LayoutRect(clip));
</ins><span class="cx"> if (graphicsLayer == layerForHorizontalScrollbar())
</span><del>- paintScrollbar(m_renderView.frameView().horizontalScrollbar(), context, clip);
</del><ins>+ paintScrollbar(m_renderView.frameView().horizontalScrollbar(), context, pixelSnappedRectForIntegralPositionedItems);
</ins><span class="cx"> else if (graphicsLayer == layerForVerticalScrollbar())
</span><del>- paintScrollbar(m_renderView.frameView().verticalScrollbar(), context, clip);
</del><ins>+ paintScrollbar(m_renderView.frameView().verticalScrollbar(), context, pixelSnappedRectForIntegralPositionedItems);
</ins><span class="cx"> else if (graphicsLayer == layerForScrollCorner()) {
</span><span class="cx"> const IntRect& scrollCorner = m_renderView.frameView().scrollCornerRect();
</span><span class="cx"> context.save();
</span><span class="cx"> context.translate(-scrollCorner.x(), -scrollCorner.y());
</span><del>- IntRect transformedClip = clip;
</del><ins>+ IntRect transformedClip = pixelSnappedRectForIntegralPositionedItems;
</ins><span class="cx"> transformedClip.moveBy(scrollCorner.location());
</span><span class="cx"> m_renderView.frameView().paintScrollCorner(&context, transformedClip);
</span><span class="cx"> context.restore();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerCompositorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerCompositor.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerCompositor.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebCore/rendering/RenderLayerCompositor.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -307,7 +307,7 @@
</span><span class="cx"> // GraphicsLayerClient implementation
</span><span class="cx"> virtual void notifyAnimationStarted(const GraphicsLayer*, double) override { }
</span><span class="cx"> virtual void notifyFlushRequired(const GraphicsLayer*) override;
</span><del>- virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect&) override;
</del><ins>+ virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const FloatRect&) override;
</ins><span class="cx">
</span><span class="cx"> virtual bool isTrackingRepaints() const override;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKitgtkChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/gtk/ChangeLog (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/gtk/ChangeLog        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit/gtk/ChangeLog        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2014-02-11 Zalan Bujtas <zalan@apple.com>
+
+ Subpixel rendering: Make GraphicsLayerClient::paintContents's clip rect subpixel based.
+ https://bugs.webkit.org/show_bug.cgi?id=128460
+
+ Reviewed by Simon Fraser.
+
+ GraphicsClient::paintContents takes clipRect as FloatRect now so that we can paint on
+ subpixel position.
+
+ No change in functionality.
+
+ * WebCoreSupport/AcceleratedCompositingContext.h:
+ * WebCoreSupport/AcceleratedCompositingContextGL.cpp:
+ (WebKit::AcceleratedCompositingContext::paintContents):
+
</ins><span class="cx"> 2014-02-10 Carlos Garcia Campos <cgarcia@igalia.com>
</span><span class="cx">
</span><span class="cx"> [GLIB] Add GUniqueOutPtr and use it instead of GOwnPtr
</span></span></pre></div>
<a id="trunkSourceWebKitgtkWebCoreSupportAcceleratedCompositingContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContext.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContext.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContext.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -19,6 +19,7 @@
</span><span class="cx"> #ifndef AcceleratedCompositingContext_h
</span><span class="cx"> #define AcceleratedCompositingContext_h
</span><span class="cx">
</span><ins>+#include "FloatRect.h"
</ins><span class="cx"> #include "GraphicsLayer.h"
</span><span class="cx"> #include "GraphicsLayerClient.h"
</span><span class="cx"> #include "IntRect.h"
</span><span class="lines">@@ -58,7 +59,7 @@
</span><span class="cx"> // GraphicsLayerClient
</span><span class="cx"> virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time);
</span><span class="cx"> virtual void notifyFlushRequired(const WebCore::GraphicsLayer*);
</span><del>- virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& rectToPaint);
</del><ins>+ virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& rectToPaint);
</ins><span class="cx">
</span><span class="cx"> void initialize();
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKitgtkWebCoreSupportAcceleratedCompositingContextGLcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -396,11 +396,11 @@
</span><span class="cx">
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void AcceleratedCompositingContext::paintContents(const GraphicsLayer*, GraphicsContext& context, GraphicsLayerPaintingPhase, const IntRect& rectToPaint)
</del><ins>+void AcceleratedCompositingContext::paintContents(const GraphicsLayer*, GraphicsContext& context, GraphicsLayerPaintingPhase, const FloatRect& rectToPaint)
</ins><span class="cx"> {
</span><span class="cx"> context.save();
</span><span class="cx"> context.clip(rectToPaint);
</span><del>- core(m_webView)->mainFrame().view()->paint(&context, rectToPaint);
</del><ins>+ core(m_webView)->mainFrame().view()->paint(&context, enclosingIntRect(rectToPaint));
</ins><span class="cx"> context.restore();
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/ChangeLog (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/ChangeLog        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit/win/ChangeLog        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2014-02-11 Zalan Bujtas <zalan@apple.com>
+
+ Subpixel rendering: Make GraphicsLayerClient::paintContents's clip rect subpixel based.
+ https://bugs.webkit.org/show_bug.cgi?id=128460
+
+ Reviewed by Simon Fraser.
+
+ GraphicsClient::paintContents takes clipRect as FloatRect now so that we can paint on
+ subpixel position.
+
+ No change in functionality.
+
+ * WebView.cpp:
+ (WebView::paintContents):
+ * WebView.h:
+
</ins><span class="cx"> 2014-02-11 Alex Christensen <achristensen@webkit.org>
</span><span class="cx">
</span><span class="cx"> Fixed pointer truncation on Win64.
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebView.cpp (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebView.cpp        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit/win/WebView.cpp        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -6730,7 +6730,7 @@
</span><span class="cx"> flushPendingGraphicsLayerChangesSoon();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void WebView::paintContents(const GraphicsLayer*, GraphicsContext& context, GraphicsLayerPaintingPhase, const IntRect& inClip)
</del><ins>+void WebView::paintContents(const GraphicsLayer*, GraphicsContext& context, GraphicsLayerPaintingPhase, const FloatRect& inClip)
</ins><span class="cx"> {
</span><span class="cx"> Frame* frame = core(m_mainFrame);
</span><span class="cx"> if (!frame)
</span><span class="lines">@@ -6738,7 +6738,7 @@
</span><span class="cx">
</span><span class="cx"> context.save();
</span><span class="cx"> context.clip(inClip);
</span><del>- frame->view()->paint(&context, inClip);
</del><ins>+ frame->view()->paint(&context, enclosingIntRect(inClip));
</ins><span class="cx"> context.restore();
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKitwinWebViewh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/win/WebView.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/win/WebView.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit/win/WebView.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -1019,7 +1019,7 @@
</span><span class="cx"> // GraphicsLayerClient
</span><span class="cx"> virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time);
</span><span class="cx"> virtual void notifyFlushRequired(const WebCore::GraphicsLayer*);
</span><del>- virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip);
</del><ins>+ virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& inClip);
</ins><span class="cx">
</span><span class="cx"> // CACFLayerTreeHostClient
</span><span class="cx"> virtual void flushPendingGraphicsLayerChanges();
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit2/ChangeLog        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2014-02-11 Zalan Bujtas <zalan@apple.com>
+
+ Subpixel rendering: Make GraphicsLayerClient::paintContents's clip rect subpixel based.
+ https://bugs.webkit.org/show_bug.cgi?id=128460
+
+ Reviewed by Simon Fraser.
+
+ GraphicsClient::paintContents takes clipRect as FloatRect now so that we can paint on
+ subpixel position.
+
+ No change in functionality.
+
+ * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
+ (WebKit::LayerTreeHostGtk::paintContents):
+ * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
+ * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
+ * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
+ (WebKit::RemoteLayerTreeDrawingArea::paintContents):
+ * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
+ * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
+ (WebKit::TiledCoreAnimationDrawingArea::paintContents):
+
</ins><span class="cx"> 2014-02-11 Sam Weinig <sam@webkit.org>
</span><span class="cx">
</span><span class="cx"> [WebKit2, JSC] Add user default to disable the JIT
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagegtkLayerTreeHostGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -272,16 +272,16 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void LayerTreeHostGtk::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const IntRect& clipRect)
</del><ins>+void LayerTreeHostGtk::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const FloatRect& clipRect)
</ins><span class="cx"> {
</span><span class="cx"> if (graphicsLayer == m_nonCompositedContentLayer.get()) {
</span><del>- m_webPage->drawRect(graphicsContext, clipRect);
</del><ins>+ m_webPage->drawRect(graphicsContext, enclosingIntRect(clipRect));
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> for (auto& pageOverlayLayer : m_pageOverlayLayers) {
</span><span class="cx"> if (pageOverlayLayer.value.get() == graphicsLayer) {
</span><del>- m_webPage->drawPageOverlay(pageOverlayLayer.key, graphicsContext, clipRect);
</del><ins>+ m_webPage->drawPageOverlay(pageOverlayLayer.key, graphicsContext, enclosingIntRect(clipRect));
</ins><span class="cx"> break;
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagegtkLayerTreeHostGtkh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> // GraphicsLayerClient
</span><span class="cx"> virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time);
</span><span class="cx"> virtual void notifyFlushRequired(const WebCore::GraphicsLayer*);
</span><del>- virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect);
</del><ins>+ virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& clipRect);
</ins><span class="cx"> virtual void didCommitChangesForLayer(const WebCore::GraphicsLayer*) const { }
</span><span class="cx">
</span><span class="cx"> void createPageOverlayLayer(PageOverlay*);
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacRemoteLayerTreeDrawingAreah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx"> // WebCore::GraphicsLayerClient
</span><span class="cx"> virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) override { }
</span><span class="cx"> virtual void notifyFlushRequired(const WebCore::GraphicsLayer*) override { }
</span><del>- virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect) override;
</del><ins>+ virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& clipRect) override;
</ins><span class="cx"> virtual float deviceScaleFactor() const override;
</span><span class="cx"> virtual void didCommitChangesForLayer(const WebCore::GraphicsLayer*) const override { }
</span><span class="cx"> #if PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacRemoteLayerTreeDrawingAreamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -189,11 +189,11 @@
</span><span class="cx"> scheduleCompositingLayerFlush();
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void RemoteLayerTreeDrawingArea::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const IntRect& clipRect)
</del><ins>+void RemoteLayerTreeDrawingArea::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const FloatRect& clipRect)
</ins><span class="cx"> {
</span><span class="cx"> for (const auto& overlayAndLayer : m_pageOverlayLayers) {
</span><span class="cx"> if (overlayAndLayer.value.get() == graphicsLayer) {
</span><del>- m_webPage->drawPageOverlay(overlayAndLayer.key, graphicsContext, clipRect);
</del><ins>+ m_webPage->drawPageOverlay(overlayAndLayer.key, graphicsContext, enclosingIntRect(clipRect));
</ins><span class="cx"> break;
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacTiledCoreAnimationDrawingAreah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx"> // WebCore::GraphicsLayerClient
</span><span class="cx"> virtual void notifyAnimationStarted(const WebCore::GraphicsLayer*, double time) override;
</span><span class="cx"> virtual void notifyFlushRequired(const WebCore::GraphicsLayer*) override;
</span><del>- virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& clipRect) override;
</del><ins>+ virtual void paintContents(const WebCore::GraphicsLayer*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, const WebCore::FloatRect& clipRect) override;
</ins><span class="cx"> virtual float deviceScaleFactor() const override;
</span><span class="cx"> virtual void didCommitChangesForLayer(const WebCore::GraphicsLayer*) const override;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacTiledCoreAnimationDrawingAreamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm (163930 => 163931)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm        2014-02-12 03:23:55 UTC (rev 163930)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm        2014-02-12 03:28:43 UTC (rev 163931)
</span><span class="lines">@@ -356,11 +356,11 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx">
</span><del>-void TiledCoreAnimationDrawingArea::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const IntRect& clipRect)
</del><ins>+void TiledCoreAnimationDrawingArea::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& graphicsContext, GraphicsLayerPaintingPhase, const FloatRect& clipRect)
</ins><span class="cx"> {
</span><span class="cx"> for (auto it = m_pageOverlayLayers.begin(), end = m_pageOverlayLayers.end(); it != end; ++it) {
</span><span class="cx"> if (it->value.get() == graphicsLayer) {
</span><del>- m_webPage->drawPageOverlay(it->key, graphicsContext, clipRect);
</del><ins>+ m_webPage->drawPageOverlay(it->key, graphicsContext, enclosingIntRect(clipRect));
</ins><span class="cx"> break;
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre>
</div>
</div>
</body>
</html>