| 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) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights |
| 7 * reserved. | 7 * reserved. |
| 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 |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef Attribute_h | 26 #ifndef Attribute_h |
| 27 #define Attribute_h | 27 #define Attribute_h |
| 28 | 28 |
| 29 #include "core/dom/QualifiedName.h" | 29 #include "core/dom/QualifiedName.h" |
| 30 #include "wtf/Allocator.h" | 30 #include "platform/wtf/Allocator.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 // This is the internal representation of an attribute, consisting of a name and | 34 // This is the internal representation of an attribute, consisting of a name and |
| 35 // value. It is distinct from the web-exposed Attr, which also knows of the | 35 // value. It is distinct from the web-exposed Attr, which also knows of the |
| 36 // element to which it attached, if any. | 36 // element to which it attached, if any. |
| 37 class Attribute { | 37 class Attribute { |
| 38 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 38 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 39 | 39 |
| 40 public: | 40 public: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 inline bool Attribute::MatchesCaseInsensitive( | 83 inline bool Attribute::MatchesCaseInsensitive( |
| 84 const QualifiedName& qualified_name) const { | 84 const QualifiedName& qualified_name) const { |
| 85 return qualified_name.LocalNameUpper() == name_.LocalNameUpper() && | 85 return qualified_name.LocalNameUpper() == name_.LocalNameUpper() && |
| 86 (qualified_name.Prefix() == g_star_atom || | 86 (qualified_name.Prefix() == g_star_atom || |
| 87 qualified_name.NamespaceURI() == NamespaceURI()); | 87 qualified_name.NamespaceURI() == NamespaceURI()); |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // Attribute_h | 92 #endif // Attribute_h |
| OLD | NEW |