| OLD | NEW |
| 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 Loading... |
| 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(url_, service_type_, param_names, param_values); | 178 RequestObject(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 Loading... |
| 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 |
| OLD | NEW |