| 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 reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011 Apple Inc. All rights reserv
ed. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 HTMLPlugInImageElement::collectStyleForAttribute(attribute, style); | 92 HTMLPlugInImageElement::collectStyleForAttribute(attribute, style); |
| 93 } | 93 } |
| 94 | 94 |
| 95 void HTMLEmbedElement::parseAttribute(const Attribute& attribute) | 95 void HTMLEmbedElement::parseAttribute(const Attribute& attribute) |
| 96 { | 96 { |
| 97 if (attribute.name() == typeAttr) { | 97 if (attribute.name() == typeAttr) { |
| 98 m_serviceType = attribute.value().string().lower(); | 98 m_serviceType = attribute.value().string().lower(); |
| 99 size_t pos = m_serviceType.find(";"); | 99 size_t pos = m_serviceType.find(";"); |
| 100 if (pos != notFound) | 100 if (pos != notFound) |
| 101 m_serviceType = m_serviceType.left(pos); | 101 m_serviceType = m_serviceType.left(pos); |
| 102 if (!isImageType() && m_imageLoader) | |
| 103 m_imageLoader.clear(); | |
| 104 } else if (attribute.name() == codeAttr) | 102 } else if (attribute.name() == codeAttr) |
| 105 m_url = stripLeadingAndTrailingHTMLSpaces(attribute.value()); | 103 m_url = stripLeadingAndTrailingHTMLSpaces(attribute.value()); |
| 106 else if (attribute.name() == srcAttr) { | 104 else if (attribute.name() == srcAttr) { |
| 107 m_url = stripLeadingAndTrailingHTMLSpaces(attribute.value()); | 105 m_url = stripLeadingAndTrailingHTMLSpaces(attribute.value()); |
| 108 if (renderer() && isImageType()) { | 106 if (renderer() && isImageType()) { |
| 109 if (!m_imageLoader) | 107 if (!m_imageLoader) |
| 110 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); | 108 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); |
| 111 m_imageLoader->updateFromElementIgnoringPreviousError(); | 109 m_imageLoader->updateFromElementIgnoringPreviousError(); |
| 112 } | 110 } |
| 113 } else | 111 } else |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 return getURLAttribute(srcAttr); | 227 return getURLAttribute(srcAttr); |
| 230 } | 228 } |
| 231 | 229 |
| 232 void HTMLEmbedElement::setItemValueText(const String& value, ExceptionCode&) | 230 void HTMLEmbedElement::setItemValueText(const String& value, ExceptionCode&) |
| 233 { | 231 { |
| 234 setAttribute(srcAttr, value); | 232 setAttribute(srcAttr, value); |
| 235 } | 233 } |
| 236 #endif | 234 #endif |
| 237 | 235 |
| 238 } | 236 } |
| OLD | NEW |