<!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>[169484] trunk/Source/WebCore</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/169484">169484</a></dd>
<dt>Author</dt> <dd>zalan@apple.com</dd>
<dt>Date</dt> <dd>2014-05-30 07:16:54 -0700 (Fri, 30 May 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove redundant GraphicsContext::drawImage() function.
https://bugs.webkit.org/show_bug.cgi?id=133347

Reviewed by Simon Fraser.

There are 2 GraphicsContext::drawImage functions with very similar parameter list. This looks
to be a source of confusion and results in passing unneeded parameters.

No change in functionality.

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::drawImage):
(WebCore::drawImageToContext):
* platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::drawImage):
* platform/graphics/GraphicsContext.h:
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
(WebCore::MediaPlayerPrivateGStreamerBase::paint):
* platform/graphics/texmap/TextureMapperImageBuffer.cpp:
(WebCore::BitmapTextureImageBuffer::updateContents):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::paintNinePieceImage):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dcpp">trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsGraphicsContextcpp">trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsGraphicsContexth">trunk/Source/WebCore/platform/graphics/GraphicsContext.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsgstreamerMediaPlayerPrivateGStreamerBasecpp">trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapTextureMapperImageBuffercpp">trunk/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderBoxModelObjectcpp">trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (169483 => 169484)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-05-30 10:58:36 UTC (rev 169483)
+++ trunk/Source/WebCore/ChangeLog        2014-05-30 14:16:54 UTC (rev 169484)
</span><span class="lines">@@ -1,3 +1,28 @@
</span><ins>+2014-05-30  Zalan Bujtas  &lt;zalan@apple.com&gt;
+
+        Remove redundant GraphicsContext::drawImage() function.
+        https://bugs.webkit.org/show_bug.cgi?id=133347
+
+        Reviewed by Simon Fraser.
+
+        There are 2 GraphicsContext::drawImage functions with very similar parameter list. This looks
+        to be a source of confusion and results in passing unneeded parameters.
+
+        No change in functionality.
+
+        * html/canvas/CanvasRenderingContext2D.cpp:
+        (WebCore::CanvasRenderingContext2D::drawImage):
+        (WebCore::drawImageToContext):
+        * platform/graphics/GraphicsContext.cpp:
+        (WebCore::GraphicsContext::drawImage):
+        * platform/graphics/GraphicsContext.h:
+        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
+        (WebCore::MediaPlayerPrivateGStreamerBase::paint):
+        * platform/graphics/texmap/TextureMapperImageBuffer.cpp:
+        (WebCore::BitmapTextureImageBuffer::updateContents):
+        * rendering/RenderBoxModelObject.cpp:
+        (WebCore::RenderBoxModelObject::paintNinePieceImage):
+
</ins><span class="cx"> 2014-05-29  Alex Christensen  &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Prepare css jit for arm64 and other architectures.
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasCanvasRenderingContext2Dcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp (169483 => 169484)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp        2014-05-30 10:58:36 UTC (rev 169483)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp        2014-05-30 14:16:54 UTC (rev 169484)
</span><span class="lines">@@ -1378,17 +1378,17 @@
</span><span class="cx">     checkOrigin(image);
</span><span class="cx"> 
</span><span class="cx">     if (rectContainsCanvas(normalizedDstRect)) {
</span><del>-        c-&gt;drawImage(cachedImage-&gt;imageForRenderer(image-&gt;renderer()), ColorSpaceDeviceRGB, normalizedDstRect, normalizedSrcRect, op, blendMode, ImageOrientationDescription());
</del><ins>+        c-&gt;drawImage(cachedImage-&gt;imageForRenderer(image-&gt;renderer()), ColorSpaceDeviceRGB, normalizedDstRect, normalizedSrcRect, op, blendMode);
</ins><span class="cx">         didDrawEntireCanvas();
</span><span class="cx">     } else if (isFullCanvasCompositeMode(op)) {
</span><span class="cx">         fullCanvasCompositedDrawImage(cachedImage-&gt;imageForRenderer(image-&gt;renderer()), ColorSpaceDeviceRGB, normalizedDstRect, normalizedSrcRect, op);
</span><span class="cx">         didDrawEntireCanvas();
</span><span class="cx">     } else if (op == CompositeCopy) {
</span><span class="cx">         clearCanvas();
</span><del>-        c-&gt;drawImage(cachedImage-&gt;imageForRenderer(image-&gt;renderer()), ColorSpaceDeviceRGB, normalizedDstRect, normalizedSrcRect, op, blendMode, ImageOrientationDescription());
</del><ins>+        c-&gt;drawImage(cachedImage-&gt;imageForRenderer(image-&gt;renderer()), ColorSpaceDeviceRGB, normalizedDstRect, normalizedSrcRect, op, blendMode);
</ins><span class="cx">         didDrawEntireCanvas();
</span><span class="cx">     } else {
</span><del>-        c-&gt;drawImage(cachedImage-&gt;imageForRenderer(image-&gt;renderer()), ColorSpaceDeviceRGB, normalizedDstRect, normalizedSrcRect, op, blendMode, ImageOrientationDescription());
</del><ins>+        c-&gt;drawImage(cachedImage-&gt;imageForRenderer(image-&gt;renderer()), ColorSpaceDeviceRGB, normalizedDstRect, normalizedSrcRect, op, blendMode);
</ins><span class="cx">         didDraw(normalizedDstRect);
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -1659,7 +1659,7 @@
</span><span class="cx"> 
</span><span class="cx"> static void drawImageToContext(Image* image, GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect&amp; dest, const FloatRect&amp; src, CompositeOperator op)
</span><span class="cx"> {
</span><del>-    context-&gt;drawImage(image, styleColorSpace, dest, src, op, ImageOrientationDescription());
</del><ins>+    context-&gt;drawImage(image, styleColorSpace, dest, src, op);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void drawImageToContext(ImageBuffer* imageBuffer, GraphicsContext* context, ColorSpace styleColorSpace, const FloatRect&amp; dest, const FloatRect&amp; src, CompositeOperator op)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsGraphicsContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp (169483 => 169484)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp        2014-05-30 10:58:36 UTC (rev 169483)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp        2014-05-30 14:16:54 UTC (rev 169484)
</span><span class="lines">@@ -551,26 +551,21 @@
</span><span class="cx"> {
</span><span class="cx">     if (!image)
</span><span class="cx">         return;
</span><del>-    drawImage(image, styleColorSpace, FloatRect(p, image-&gt;size()), FloatRect(FloatPoint(), image-&gt;size()), op, description);
</del><ins>+    drawImage(image, styleColorSpace, FloatRect(p, image-&gt;size()), FloatRect(FloatPoint(), image-&gt;size()), op, BlendModeNormal, description);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect&amp; r, CompositeOperator op, ImageOrientationDescription description, bool useLowQualityScale)
</span><span class="cx"> {
</span><span class="cx">     if (!image)
</span><span class="cx">         return;
</span><del>-    drawImage(image, styleColorSpace, r, FloatRect(FloatPoint(), image-&gt;size()), op, description, useLowQualityScale);
</del><ins>+    drawImage(image, styleColorSpace, r, FloatRect(FloatPoint(), image-&gt;size()), op, BlendModeNormal, description, useLowQualityScale);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatPoint&amp; dest, const FloatRect&amp; srcRect, CompositeOperator op, ImageOrientationDescription description)
</span><span class="cx"> {
</span><del>-    drawImage(image, styleColorSpace, FloatRect(dest, srcRect.size()), srcRect, op, description);
</del><ins>+    drawImage(image, styleColorSpace, FloatRect(dest, srcRect.size()), srcRect, op, BlendModeNormal, description);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect&amp; dest, const FloatRect&amp; src, CompositeOperator op, ImageOrientationDescription description, bool useLowQualityScale)
-{
-    drawImage(image, styleColorSpace, dest, src, op, BlendModeNormal, description, useLowQualityScale);
-}
-
</del><span class="cx"> void GraphicsContext::drawImage(Image* image, ColorSpace styleColorSpace, const FloatRect&amp; dest, const FloatRect&amp; src, CompositeOperator op, BlendMode blendMode, ImageOrientationDescription description, bool useLowQualityScale)
</span><span class="cx"> {    if (paintingDisabled() || !image)
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsGraphicsContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.h (169483 => 169484)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/GraphicsContext.h        2014-05-30 10:58:36 UTC (rev 169483)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.h        2014-05-30 14:16:54 UTC (rev 169484)
</span><span class="lines">@@ -305,8 +305,7 @@
</span><span class="cx">         void drawImage(Image*, ColorSpace styleColorSpace, const FloatPoint&amp;, CompositeOperator = CompositeSourceOver, ImageOrientationDescription = ImageOrientationDescription());
</span><span class="cx">         void drawImage(Image*, ColorSpace styleColorSpace, const FloatRect&amp;, CompositeOperator = CompositeSourceOver, ImageOrientationDescription = ImageOrientationDescription(), bool useLowQualityScale = false);
</span><span class="cx">         void drawImage(Image*, ColorSpace styleColorSpace, const FloatPoint&amp; destPoint, const FloatRect&amp; srcRect, CompositeOperator = CompositeSourceOver, ImageOrientationDescription = ImageOrientationDescription());
</span><del>-        void drawImage(Image*, ColorSpace styleColorSpace, const FloatRect&amp; destRect, const FloatRect&amp; srcRect, CompositeOperator = CompositeSourceOver, ImageOrientationDescription = ImageOrientationDescription(), bool useLowQualityScale = false);
-        void drawImage(Image*, ColorSpace styleColorSpace, const FloatRect&amp; destRect, const FloatRect&amp; srcRect, CompositeOperator, BlendMode, ImageOrientationDescription = ImageOrientationDescription(), bool useLowQualityScale = false);
</del><ins>+        void drawImage(Image*, ColorSpace styleColorSpace, const FloatRect&amp; destRect, const FloatRect&amp; srcRect, CompositeOperator = CompositeSourceOver, BlendMode = BlendModeNormal, ImageOrientationDescription = ImageOrientationDescription(), bool useLowQualityScale = false);
</ins><span class="cx">         
</span><span class="cx">         void drawTiledImage(Image*, ColorSpace styleColorSpace, const FloatRect&amp; destRect, const FloatPoint&amp; srcPoint, const FloatSize&amp; tileSize,
</span><span class="cx">             CompositeOperator = CompositeSourceOver, bool useLowQualityScale = false, BlendMode = BlendModeNormal);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsgstreamerMediaPlayerPrivateGStreamerBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp (169483 => 169484)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp        2014-05-30 10:58:36 UTC (rev 169483)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp        2014-05-30 14:16:54 UTC (rev 169484)
</span><span class="lines">@@ -364,7 +364,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     context-&gt;drawImage(reinterpret_cast&lt;Image*&gt;(gstImage-&gt;image().get()), ColorSpaceSRGB,
</span><del>-        rect, gstImage-&gt;rect(), CompositeCopy, ImageOrientationDescription(), false);
</del><ins>+        rect, gstImage-&gt;rect(), CompositeCopy);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if USE(TEXTURE_MAPPER_GL) &amp;&amp; !USE(COORDINATED_GRAPHICS)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapTextureMapperImageBuffercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.cpp (169483 => 169484)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.cpp        2014-05-30 10:58:36 UTC (rev 169483)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperImageBuffer.cpp        2014-05-30 14:16:54 UTC (rev 169484)
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> 
</span><span class="cx"> void BitmapTextureImageBuffer::updateContents(Image* image, const IntRect&amp; targetRect, const IntPoint&amp; offset, UpdateContentsFlag)
</span><span class="cx"> {
</span><del>-    m_image-&gt;context()-&gt;drawImage(image, ColorSpaceDeviceRGB, targetRect, IntRect(offset, targetRect.size()), CompositeCopy, ImageOrientationDescription());
</del><ins>+    m_image-&gt;context()-&gt;drawImage(image, ColorSpaceDeviceRGB, targetRect, IntRect(offset, targetRect.size()), CompositeCopy);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> IntSize TextureMapperImageBuffer::maxTextureSize() const
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderBoxModelObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp (169483 => 169484)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp        2014-05-30 10:58:36 UTC (rev 169483)
+++ trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp        2014-05-30 14:16:54 UTC (rev 169484)
</span><span class="lines">@@ -1328,13 +1328,13 @@
</span><span class="cx">         // The rect to use from within the image is obtained from our slice, and is (0, 0, leftSlice, topSlice)
</span><span class="cx">         if (drawTop)
</span><span class="cx">             graphicsContext-&gt;drawImage(image.get(), colorSpace, pixelSnappedForPainting(x, y, leftWidth, topWidth, deviceScaleFactor),
</span><del>-                pixelSnappedForPainting(0, 0, leftSlice, topSlice, deviceScaleFactor), op, ImageOrientationDescription());
</del><ins>+                pixelSnappedForPainting(0, 0, leftSlice, topSlice, deviceScaleFactor), op);
</ins><span class="cx"> 
</span><span class="cx">         // The bottom left corner rect is (tx, ty + h - bottomWidth, leftWidth, bottomWidth)
</span><span class="cx">         // The rect to use from within the image is (0, imageHeight - bottomSlice, leftSlice, botomSlice)
</span><span class="cx">         if (drawBottom)
</span><span class="cx">             graphicsContext-&gt;drawImage(image.get(), colorSpace, pixelSnappedForPainting(x, borderImageRect.maxY() - bottomWidth, leftWidth, bottomWidth, deviceScaleFactor),
</span><del>-                pixelSnappedForPainting(0, imageHeight - bottomSlice, leftSlice, bottomSlice, deviceScaleFactor), op, ImageOrientationDescription());
</del><ins>+                pixelSnappedForPainting(0, imageHeight - bottomSlice, leftSlice, bottomSlice, deviceScaleFactor), op);
</ins><span class="cx"> 
</span><span class="cx">         // Paint the left edge.
</span><span class="cx">         // Have to scale and tile into the border rect.
</span><span class="lines">@@ -1349,14 +1349,14 @@
</span><span class="cx">         // The rect to use from within the image is obtained from our slice, and is (imageWidth - rightSlice, 0, rightSlice, topSlice)
</span><span class="cx">         if (drawTop)
</span><span class="cx">             graphicsContext-&gt;drawImage(image.get(), colorSpace, pixelSnappedForPainting(borderImageRect.maxX() - rightWidth, y, rightWidth, topWidth, deviceScaleFactor),
</span><del>-                pixelSnappedForPainting(imageWidth - rightSlice, 0, rightSlice, topSlice, deviceScaleFactor), op, ImageOrientationDescription());
</del><ins>+                pixelSnappedForPainting(imageWidth - rightSlice, 0, rightSlice, topSlice, deviceScaleFactor), op);
</ins><span class="cx"> 
</span><span class="cx">         // The bottom right corner rect is (tx + w - rightWidth, ty + h - bottomWidth, rightWidth, bottomWidth)
</span><span class="cx">         // The rect to use from within the image is (imageWidth - rightSlice, imageHeight - bottomSlice, rightSlice, bottomSlice)
</span><span class="cx">         if (drawBottom)
</span><span class="cx">             graphicsContext-&gt;drawImage(image.get(), colorSpace, pixelSnappedForPainting(borderImageRect.maxX() - rightWidth, borderImageRect.maxY() - bottomWidth,
</span><span class="cx">                 rightWidth, bottomWidth, deviceScaleFactor), pixelSnappedForPainting(imageWidth - rightSlice, imageHeight - bottomSlice, rightSlice, bottomSlice, deviceScaleFactor),
</span><del>-                op, ImageOrientationDescription());
</del><ins>+                op);
</ins><span class="cx"> 
</span><span class="cx">         // Paint the right edge.
</span><span class="cx">         if (sourceHeight &gt; 0)
</span></span></pre>
</div>
</div>

</body>
</html>