Skip to content

Commit

Permalink
Revert "Put canvas on a layer"
Browse files Browse the repository at this point in the history
Bug: 5712065
This reverts commit 35e0b8d
  • Loading branch information
jreck authored and Android (Google) Code Review committed Dec 13, 2011
1 parent 35e0b8d commit c25e443
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions Source/WebCore/rendering/RenderHTMLCanvas.cpp
Expand Up @@ -47,13 +47,9 @@ RenderHTMLCanvas::RenderHTMLCanvas(HTMLCanvasElement* element)

bool RenderHTMLCanvas::requiresLayer() const
{
#if PLATFORM(ANDROID)
return true;
#endif

if (RenderReplaced::requiresLayer())
return true;

HTMLCanvasElement* canvas = static_cast<HTMLCanvasElement*>(node());
return canvas && canvas->renderingContext() && canvas->renderingContext()->isAccelerated();
}
Expand Down
2 changes: 0 additions & 2 deletions Source/WebCore/rendering/RenderLayerCompositor.cpp
Expand Up @@ -1384,8 +1384,6 @@ bool RenderLayerCompositor::requiresCompositingForAndroidLayers(const RenderLaye
if (layer->isFixed())
return true;
#endif
if (layer->renderer()->isCanvas())
return true;
return false;
}
#endif
Expand Down

0 comments on commit c25e443

Please sign in to comment.