| Index: Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
|
| index 50e6afbb428e0bea70f3aace7a0a07cf64e98161..f6f75570aaf4a799caa44aed0956b92ce2f2ae6a 100644
|
| --- a/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -298,7 +298,7 @@ void HTMLCanvasElement::didFinalizeFrame()
|
| // paint invalidations if the canvas is accelerated, since
|
| // the canvas contents are sent separately through a texture layer.
|
| if (ro && (!m_context || !m_context->isAccelerated())) {
|
| - LayoutRect mappedDirtyRect(enclosingIntRect(mapRect(m_dirtyRect, srcRect, ro->contentBoxRect())));
|
| + LayoutRect mappedDirtyRect(enclosingIntRect(mapRect(m_dirtyRect, srcRect, FloatRect(ro->contentBoxRect()))));
|
| // For querying DeprecatedPaintLayer::compositingState()
|
| // FIXME: is this invalidation using the correct compositing state?
|
| DisableCompositingQueryAsserts disabler;
|
| @@ -324,7 +324,7 @@ void HTMLCanvasElement::doDeferredPaintInvalidation()
|
| m_dirtyRect.intersect(srcRect);
|
| LayoutBox* lb = layoutBox();
|
| if (lb) {
|
| - FloatRect mappedDirtyRect = mapRect(m_dirtyRect, srcRect, lb->contentBoxRect());
|
| + FloatRect mappedDirtyRect = mapRect(m_dirtyRect, srcRect, FloatRect(lb->contentBoxRect()));
|
| if (m_context->isAccelerated()) {
|
| // Accelerated 2D canvases need the dirty rect to be expressed relative to the
|
| // content box, as opposed to the layout box.
|
|
|