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

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

Issue 907453003: Move overdraw tracking code from GraphicsContext to CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test copypasta 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/HTMLImageElement.h ('k') | Source/core/html/canvas/CanvasImageSource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImageElement.cpp
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
index 0fba7de53c41faf22d9e383ef295d192dbb5840e..bcf7155b3064ba4f6290a8d8b5f7ba3968cac770 100644
--- a/Source/core/html/HTMLImageElement.cpp
+++ b/Source/core/html/HTMLImageElement.cpp
@@ -725,4 +725,11 @@ void HTMLImageElement::setUseFallbackContent()
EventDispatchForbiddenScope::AllowUserAgentEvents allowEvents;
ensureUserAgentShadowRoot();
}
+
+bool HTMLImageElement::isOpaque() const
+{
+ Image* image = const_cast<HTMLImageElement*>(this)->imageContents();
+ return image && image->currentFrameKnownToBeOpaque();
+}
+
}
« no previous file with comments | « Source/core/html/HTMLImageElement.h ('k') | Source/core/html/canvas/CanvasImageSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698