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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLEmbedElement.cpp

Issue 2933213002: Revert of Move ObjectContentType entirely to HTMLPlugInElement (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011 Apple Inc. All rights 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // Overwrites the URL and MIME type of a Flash embed to use an HTML5 embed. 169 // Overwrites the URL and MIME type of a Flash embed to use an HTML5 embed.
170 KURL overriden_url = 170 KURL overriden_url =
171 GetDocument().GetFrame()->Loader().Client()->OverrideFlashEmbedWithHTML( 171 GetDocument().GetFrame()->Loader().Client()->OverrideFlashEmbedWithHTML(
172 GetDocument().CompleteURL(url_)); 172 GetDocument().CompleteURL(url_));
173 if (!overriden_url.IsEmpty()) { 173 if (!overriden_url.IsEmpty()) {
174 url_ = overriden_url.GetString(); 174 url_ = overriden_url.GetString();
175 service_type_ = "text/html"; 175 service_type_ = "text/html";
176 } 176 }
177 177
178 RequestObject(param_names, param_values); 178 RequestObject(url_, service_type_, param_names, param_values);
179 } 179 }
180 180
181 bool HTMLEmbedElement::LayoutObjectIsNeeded(const ComputedStyle& style) { 181 bool HTMLEmbedElement::LayoutObjectIsNeeded(const ComputedStyle& style) {
182 if (IsImageType()) 182 if (IsImageType())
183 return HTMLPlugInElement::LayoutObjectIsNeeded(style); 183 return HTMLPlugInElement::LayoutObjectIsNeeded(style);
184 184
185 // https://html.spec.whatwg.org/multipage/embedded-content.html#the-embed-elem ent 185 // https://html.spec.whatwg.org/multipage/embedded-content.html#the-embed-elem ent
186 // While any of the following conditions are occurring, any plugin 186 // While any of the following conditions are occurring, any plugin
187 // instantiated for the element must be removed, and the embed element 187 // instantiated for the element must be removed, and the embed element
188 // represents nothing: 188 // represents nothing:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 for (HTMLObjectElement* object = 226 for (HTMLObjectElement* object =
227 Traversal<HTMLObjectElement>::FirstAncestor(*this); 227 Traversal<HTMLObjectElement>::FirstAncestor(*this);
228 object; object = Traversal<HTMLObjectElement>::FirstAncestor(*object)) { 228 object; object = Traversal<HTMLObjectElement>::FirstAncestor(*object)) {
229 if (object->IsExposed()) 229 if (object->IsExposed())
230 return false; 230 return false;
231 } 231 }
232 return true; 232 return true;
233 } 233 }
234 234
235 } // namespace blink 235 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrameClient.h ('k') | third_party/WebKit/Source/core/html/HTMLObjectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698