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, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 28 matching lines...) Expand all Loading... |
39 if (HasName()) | 39 if (HasName()) |
40 return GetNameAttribute(); | 40 return GetNameAttribute(); |
41 return GetDocument().IsHTMLDocument() ? g_empty_atom : GetIdAttribute(); | 41 return GetDocument().IsHTMLDocument() ? g_empty_atom : GetIdAttribute(); |
42 } | 42 } |
43 | 43 |
44 const AtomicString& HTMLParamElement::Value() const { | 44 const AtomicString& HTMLParamElement::Value() const { |
45 return FastGetAttribute(valueAttr); | 45 return FastGetAttribute(valueAttr); |
46 } | 46 } |
47 | 47 |
48 bool HTMLParamElement::IsURLParameter(const String& name) { | 48 bool HTMLParamElement::IsURLParameter(const String& name) { |
49 return EqualIgnoringCase(name, "data") || EqualIgnoringCase(name, "movie") || | 49 return DeprecatedEqualIgnoringCase(name, "data") || |
50 EqualIgnoringCase(name, "src"); | 50 DeprecatedEqualIgnoringCase(name, "movie") || |
| 51 DeprecatedEqualIgnoringCase(name, "src"); |
51 } | 52 } |
52 | 53 |
53 bool HTMLParamElement::IsURLAttribute(const Attribute& attribute) const { | 54 bool HTMLParamElement::IsURLAttribute(const Attribute& attribute) const { |
54 if (attribute.GetName() == valueAttr && IsURLParameter(GetName())) | 55 if (attribute.GetName() == valueAttr && IsURLParameter(GetName())) |
55 return true; | 56 return true; |
56 return HTMLElement::IsURLAttribute(attribute); | 57 return HTMLElement::IsURLAttribute(attribute); |
57 } | 58 } |
58 | 59 |
59 } // namespace blink | 60 } // namespace blink |
OLD | NEW |