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

Unified Diff: third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp

Issue 2927823002: Drop ImageLoader in plugins (Closed)
Patch Set: Drop ImageLoader in plugins Created 3 years, 6 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 | « no previous file | third_party/WebKit/Source/core/html/HTMLEmbedElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp b/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp
index 1a886832b2c777b5ec720a9679ab154dd6763284..bba9b18f6264124a4befbaf455c24d177b50d021 100644
--- a/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp
@@ -114,11 +114,7 @@ void HTMLEmbedElement::ParseAttribute(
url_ = StripLeadingAndTrailingHTMLSpaces(params.new_value);
} else if (params.name == srcAttr) {
url_ = StripLeadingAndTrailingHTMLSpaces(params.new_value);
- if (GetLayoutObject() && IsImageType()) {
- if (!image_loader_)
- image_loader_ = HTMLImageLoader::Create(this);
- image_loader_->UpdateFromElement(ImageLoader::kUpdateIgnorePreviousError);
- } else if (GetLayoutObject()) {
+ if (GetLayoutObject()) {
// Check if this Embed can transition from potentially-active to active
if (FastHasAttribute(typeAttr)) {
SetNeedsPluginUpdate(true);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLEmbedElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698