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, 2007, 2008, 2009, 2011 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights
reserved. |
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 void HTMLObjectElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) | 98 void HTMLObjectElement::parseAttribute(const QualifiedName& name, const AtomicSt
ring& value) |
99 { | 99 { |
100 if (name == formAttr) { | 100 if (name == formAttr) { |
101 formAttributeChanged(); | 101 formAttributeChanged(); |
102 } else if (name == typeAttr) { | 102 } else if (name == typeAttr) { |
103 m_serviceType = value.lower(); | 103 m_serviceType = value.lower(); |
104 size_t pos = m_serviceType.find(";"); | 104 size_t pos = m_serviceType.find(";"); |
105 if (pos != kNotFound) | 105 if (pos != kNotFound) |
106 m_serviceType = m_serviceType.left(pos); | 106 m_serviceType = m_serviceType.left(pos); |
107 // FIXME: What is the right thing to do here? Should we supress the | 107 // FIXME: What is the right thing to do here? Should we suppress the |
108 // reload stuff when a persistable widget-type is specified? | 108 // reload stuff when a persistable widget-type is specified? |
109 reloadPluginOnAttributeChange(name); | 109 reloadPluginOnAttributeChange(name); |
110 if (!layoutObject()) | 110 if (!layoutObject()) |
111 requestPluginCreationWithoutLayoutObjectIfPossible(); | 111 requestPluginCreationWithoutLayoutObjectIfPossible(); |
112 } else if (name == dataAttr) { | 112 } else if (name == dataAttr) { |
113 m_url = stripLeadingAndTrailingHTMLSpaces(value); | 113 m_url = stripLeadingAndTrailingHTMLSpaces(value); |
114 if (layoutObject() && isImageType()) { | 114 if (layoutObject() && isImageType()) { |
115 setNeedsWidgetUpdate(true); | 115 setNeedsWidgetUpdate(true); |
116 if (!m_imageLoader) | 116 if (!m_imageLoader) |
117 m_imageLoader = HTMLImageLoader::create(this); | 117 m_imageLoader = HTMLImageLoader::create(this); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 { | 444 { |
445 return fastHasAttribute(usemapAttr); | 445 return fastHasAttribute(usemapAttr); |
446 } | 446 } |
447 | 447 |
448 bool HTMLObjectElement::useFallbackContent() const | 448 bool HTMLObjectElement::useFallbackContent() const |
449 { | 449 { |
450 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; | 450 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; |
451 } | 451 } |
452 | 452 |
453 } | 453 } |
OLD | NEW |