| 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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 else | 92 else |
| 93 HTMLPlugInElement::CollectStyleForPresentationAttribute(name, value, style); | 93 HTMLPlugInElement::CollectStyleForPresentationAttribute(name, value, style); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void HTMLObjectElement::ParseAttribute( | 96 void HTMLObjectElement::ParseAttribute( |
| 97 const AttributeModificationParams& params) { | 97 const AttributeModificationParams& params) { |
| 98 const QualifiedName& name = params.name; | 98 const QualifiedName& name = params.name; |
| 99 if (name == formAttr) { | 99 if (name == formAttr) { |
| 100 FormAttributeChanged(); | 100 FormAttributeChanged(); |
| 101 } else if (name == typeAttr) { | 101 } else if (name == typeAttr) { |
| 102 service_type_ = params.new_value.Lower(); | 102 service_type_ = params.new_value.DeprecatedLower(); |
| 103 size_t pos = service_type_.Find(";"); | 103 size_t pos = service_type_.Find(";"); |
| 104 if (pos != kNotFound) | 104 if (pos != kNotFound) |
| 105 service_type_ = service_type_.Left(pos); | 105 service_type_ = service_type_.Left(pos); |
| 106 // TODO(schenney): crbug.com/572908 What is the right thing to do here? | 106 // TODO(schenney): crbug.com/572908 What is the right thing to do here? |
| 107 // Should we suppress the reload stuff when a persistable widget-type is | 107 // Should we suppress the reload stuff when a persistable widget-type is |
| 108 // specified? | 108 // specified? |
| 109 ReloadPluginOnAttributeChange(name); | 109 ReloadPluginOnAttributeChange(name); |
| 110 if (!GetLayoutObject()) | 110 if (!GetLayoutObject()) |
| 111 RequestPluginCreationWithoutLayoutObjectIfPossible(); | 111 RequestPluginCreationWithoutLayoutObjectIfPossible(); |
| 112 } else if (name == dataAttr) { | 112 } else if (name == dataAttr) { |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 | 459 |
| 460 bool HTMLObjectElement::WillUseFallbackContentAtLayout() const { | 460 bool HTMLObjectElement::WillUseFallbackContentAtLayout() const { |
| 461 return !HasValidClassId() && HasFallbackContent(); | 461 return !HasValidClassId() && HasFallbackContent(); |
| 462 } | 462 } |
| 463 | 463 |
| 464 void HTMLObjectElement::AssociateWith(HTMLFormElement* form) { | 464 void HTMLObjectElement::AssociateWith(HTMLFormElement* form) { |
| 465 AssociateByParser(form); | 465 AssociateByParser(form); |
| 466 }; | 466 }; |
| 467 | 467 |
| 468 } // namespace blink | 468 } // namespace blink |
| OLD | NEW |