| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 if (pos != kNotFound) | 101 if (pos != kNotFound) |
| 102 m_serviceType = m_serviceType.left(pos); | 102 m_serviceType = m_serviceType.left(pos); |
| 103 if (layoutObject()) { | 103 if (layoutObject()) { |
| 104 setNeedsWidgetUpdate(true); | 104 setNeedsWidgetUpdate(true); |
| 105 layoutObject()->setNeedsLayoutAndFullPaintInvalidation( | 105 layoutObject()->setNeedsLayoutAndFullPaintInvalidation( |
| 106 "Embed type changed"); | 106 "Embed type changed"); |
| 107 } else { | 107 } else { |
| 108 requestPluginCreationWithoutLayoutObjectIfPossible(); | 108 requestPluginCreationWithoutLayoutObjectIfPossible(); |
| 109 } | 109 } |
| 110 } else if (name == codeAttr) { | 110 } else if (name == codeAttr) { |
| 111 // TODO(schenney): Remove this branch? It's not in the spec and we're not in
the | 111 // TODO(schenney): Remove this branch? It's not in the spec and we're not in |
| 112 // HTMLAppletElement hierarchy. | 112 // the HTMLAppletElement hierarchy. |
| 113 m_url = stripLeadingAndTrailingHTMLSpaces(value); | 113 m_url = stripLeadingAndTrailingHTMLSpaces(value); |
| 114 } else if (name == srcAttr) { | 114 } else if (name == srcAttr) { |
| 115 m_url = stripLeadingAndTrailingHTMLSpaces(value); | 115 m_url = stripLeadingAndTrailingHTMLSpaces(value); |
| 116 if (layoutObject() && isImageType()) { | 116 if (layoutObject() && isImageType()) { |
| 117 if (!m_imageLoader) | 117 if (!m_imageLoader) |
| 118 m_imageLoader = HTMLImageLoader::create(this); | 118 m_imageLoader = HTMLImageLoader::create(this); |
| 119 m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError); | 119 m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError); |
| 120 } | 120 } |
| 121 } else { | 121 } else { |
| 122 HTMLPlugInElement::parseAttribute(name, oldValue, value); | 122 HTMLPlugInElement::parseAttribute(name, oldValue, value); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 for (HTMLObjectElement* object = | 216 for (HTMLObjectElement* object = |
| 217 Traversal<HTMLObjectElement>::firstAncestor(*this); | 217 Traversal<HTMLObjectElement>::firstAncestor(*this); |
| 218 object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) { | 218 object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) { |
| 219 if (object->isExposed()) | 219 if (object->isExposed()) |
| 220 return false; | 220 return false; |
| 221 } | 221 } |
| 222 return true; | 222 return true; |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace blink | 225 } // namespace blink |
| OLD | NEW |