| Index: Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
|
| index 1079b39c7d9c6f3c4f19ca52b9c8cc53c1de38f2..4f2e7fcf56576b0f3d8576ebcba6639da8880211 100644
|
| --- a/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -390,15 +390,15 @@ void HTMLCanvasElement::reset()
|
| if (m_context && m_context->is3d() && oldSize != size())
|
| toWebGLRenderingContextBase(m_context.get())->reshape(width(), height());
|
|
|
| - if (LayoutObject* renderer = this->layoutObject()) {
|
| - if (renderer->isCanvas()) {
|
| + if (LayoutObject* layoutObject = this->layoutObject()) {
|
| + if (layoutObject->isCanvas()) {
|
| if (oldSize != size()) {
|
| - toLayoutHTMLCanvas(renderer)->canvasSizeChanged();
|
| + toLayoutHTMLCanvas(layoutObject)->canvasSizeChanged();
|
| if (layoutBox() && layoutBox()->hasAcceleratedCompositing())
|
| layoutBox()->contentChanged(CanvasChanged);
|
| }
|
| if (hadImageBuffer)
|
| - renderer->setShouldDoFullPaintInvalidation();
|
| + layoutObject->setShouldDoFullPaintInvalidation();
|
| }
|
| }
|
|
|
|
|