Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| index 7555efbe2b9342af1215ffd32c5da3654fe2f907..5c8f2329b9f16f6332811ff126ce444d048ada06 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| @@ -269,9 +269,9 @@ void HTMLCanvasElement::didDraw(const FloatRect& rect) |
| clearCopiedImage(); |
| if (layoutObject()) |
| layoutObject()->setMayNeedPaintInvalidation(); |
| + m_dirtyRect.unite(rect); |
| if (m_context && m_context->is2d() && m_context->shouldAntialias() && page() && page()->deviceScaleFactor() > 1.0f) |
| m_dirtyRect.inflate(1); |
|
Justin Novosad
2016/05/18 19:11:42
what you meant to do is inflate "rect" before the
|
| - m_dirtyRect.unite(rect); |
| if (m_context && m_context->is2d() && hasImageBuffer()) |
| buffer()->didDraw(rect); |
| } |