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

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

Issue 701663002: Remove HTMLVideoElement. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/frame/UseCounter.cpp ('k') | sky/engine/core/html/HTMLMediaElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLImageLoader.cpp
diff --git a/sky/engine/core/html/HTMLImageLoader.cpp b/sky/engine/core/html/HTMLImageLoader.cpp
index 591e1e37cdb19f43c4bcf348fe04e3506c7b5f23..3a96c009b70369d3bc6b3adbba73246e7a4ec30a 100644
--- a/sky/engine/core/html/HTMLImageLoader.cpp
+++ b/sky/engine/core/html/HTMLImageLoader.cpp
@@ -43,11 +43,6 @@ HTMLImageLoader::~HTMLImageLoader()
void HTMLImageLoader::dispatchLoadEvent()
{
WTF_LOG(Timers, "HTMLImageLoader::dispatchLoadEvent %p", this);
-
- // HTMLVideoElement uses this class to load the poster image, but it should not fire events for loading or failure.
- if (isHTMLVideoElement(*element()))
- return;
-
bool errorOccurred = image()->errorOccurred();
element()->dispatchEvent(Event::create(errorOccurred ? EventTypeNames::error : EventTypeNames::load));
}
« no previous file with comments | « sky/engine/core/frame/UseCounter.cpp ('k') | sky/engine/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698