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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (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
Index: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index 5854ae4277969982724c238e14b23bad22b62e98..9a7472bf1ce255d8dd38c5405dd30896bce29f9d 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -137,7 +137,7 @@ void HTMLCanvasElement::parseAttribute(const QualifiedName& name, const AtomicSt
HTMLElement::parseAttribute(name, value);
}
-RenderObject* HTMLCanvasElement::createRenderer(RenderStyle* style)
+LayoutObject* HTMLCanvasElement::createRenderer(RenderStyle* style)
{
LocalFrame* frame = document().frame();
if (frame && frame->script().canExecuteScripts(NotAboutToExecuteScript))
@@ -359,7 +359,7 @@ void HTMLCanvasElement::reset()
if (m_context && m_context->is3d() && oldSize != size())
toWebGLRenderingContext(m_context.get())->reshape(width(), height());
- if (RenderObject* renderer = this->renderer()) {
+ if (LayoutObject* renderer = this->renderer()) {
if (renderer->isCanvas()) {
if (oldSize != size()) {
toRenderHTMLCanvas(renderer)->canvasSizeChanged();

Powered by Google App Engine
This is Rietveld 408576698