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

Unified Diff: sky/engine/core/html/HTMLCanvasElement.cpp

Issue 791023006: Delete invalidateTreeIfNeeded. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/engine/core/html/HTMLCanvasElement.cpp
diff --git a/sky/engine/core/html/HTMLCanvasElement.cpp b/sky/engine/core/html/HTMLCanvasElement.cpp
index 2ae10267fddb3d26428532573ad1d89f64b1e85f..4831ea5da915f5ac1a77283807fc3143806af773 100644
--- a/sky/engine/core/html/HTMLCanvasElement.cpp
+++ b/sky/engine/core/html/HTMLCanvasElement.cpp
@@ -277,13 +277,6 @@ void HTMLCanvasElement::reset()
if (m_context && m_context->is3d() && oldSize != size())
toWebGLRenderingContext(m_context.get())->reshape(width(), height());
- if (RenderObject* renderer = this->renderer()) {
- if (renderer->isCanvas()) {
- if (hadImageBuffer)
- renderer->setShouldDoFullPaintInvalidation(true);
- }
- }
-
HashSet<RawPtr<CanvasObserver> >::iterator end = m_observers.end();
for (HashSet<RawPtr<CanvasObserver> >::iterator it = m_observers.begin(); it != end; ++it)
(*it)->canvasResized(this);

Powered by Google App Engine
This is Rietveld 408576698