Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 1115353002: Update renderer to layoutObject in core/html. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLAreaElement.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « Source/core/html/HTMLAreaElement.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698