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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/HTMLDetailsElement.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 6a5788175c32c30d4c8d7d1cf2067016eb382c39..04a90e773801effd6c700ba954e2081db79da08a 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -283,8 +283,8 @@ void HTMLCanvasElement::didDraw(const FloatRect& rect)
return;
m_imageBufferIsClear = false;
clearCopiedImage();
- if (renderer())
- renderer()->setMayNeedPaintInvalidation();
+ if (layoutObject())
+ layoutObject()->setMayNeedPaintInvalidation();
m_dirtyRect.unite(rect);
if (m_context && m_context->is2d() && hasImageBuffer())
buffer()->didDraw(rect);
@@ -380,7 +380,7 @@ void HTMLCanvasElement::reset()
if (m_context && m_context->is3d() && oldSize != size())
toWebGLRenderingContextBase(m_context.get())->reshape(width(), height());
- if (LayoutObject* renderer = this->renderer()) {
+ if (LayoutObject* renderer = this->layoutObject()) {
if (renderer->isCanvas()) {
if (oldSize != size()) {
toLayoutHTMLCanvas(renderer)->canvasSizeChanged();
« no previous file with comments | « Source/core/html/HTMLAreaElement.cpp ('k') | Source/core/html/HTMLDetailsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698