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

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

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/HTMLBodyElement.cpp ('k') | Source/core/html/HTMLFormControlElement.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 5b854b922621bf458586eab94b3abffe9379e3c5..992a653e969e6047158bb51a6ce62696118ab86c 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -294,7 +294,7 @@ void HTMLCanvasElement::didFinalizeFrame()
// before restarting with a blank dirty rect.
FloatRect srcRect(0, 0, size().width(), size().height());
m_dirtyRect.intersect(srcRect);
- if (RenderBox* ro = renderBox()) {
+ if (LayoutBox* ro = layoutBox()) {
FloatRect mappedDirtyRect = mapRect(m_dirtyRect, srcRect, ro->contentBoxRect());
// For querying Layer::compositingState()
// FIXME: is this invalidation using the correct compositing state?
@@ -379,8 +379,8 @@ void HTMLCanvasElement::reset()
if (renderer->isCanvas()) {
if (oldSize != size()) {
toLayoutHTMLCanvas(renderer)->canvasSizeChanged();
- if (renderBox() && renderBox()->hasAcceleratedCompositing())
- renderBox()->contentChanged(CanvasChanged);
+ if (layoutBox() && layoutBox()->hasAcceleratedCompositing())
+ layoutBox()->contentChanged(CanvasChanged);
}
if (hadImageBuffer)
renderer->setShouldDoFullPaintInvalidation();
@@ -398,7 +398,7 @@ bool HTMLCanvasElement::paintsIntoCanvasBuffer() const
if (!m_context->isAccelerated())
return true;
- if (renderBox() && renderBox()->hasAcceleratedCompositing())
+ if (layoutBox() && layoutBox()->hasAcceleratedCompositing())
return false;
return true;
« no previous file with comments | « Source/core/html/HTMLBodyElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698