| 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-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. |
| 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 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 const QualifiedName& tag_name) { | 1176 const QualifiedName& tag_name) { |
| 1177 // We expect this method to be called only to reset the prefix. | 1177 // We expect this method to be called only to reset the prefix. |
| 1178 DCHECK_EQ(tag_name.LocalName(), tag_name_.LocalName()); | 1178 DCHECK_EQ(tag_name.LocalName(), tag_name_.LocalName()); |
| 1179 DCHECK_EQ(tag_name.NamespaceURI(), tag_name_.NamespaceURI()); | 1179 DCHECK_EQ(tag_name.NamespaceURI(), tag_name_.NamespaceURI()); |
| 1180 tag_name_ = tag_name; | 1180 tag_name_ = tag_name; |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 inline AtomicString Element::LocalNameForSelectorMatching() const { | 1183 inline AtomicString Element::LocalNameForSelectorMatching() const { |
| 1184 if (IsHTMLElement() || !GetDocument().IsHTMLDocument()) | 1184 if (IsHTMLElement() || !GetDocument().IsHTMLDocument()) |
| 1185 return localName(); | 1185 return localName(); |
| 1186 return localName().Lower(); | 1186 return localName().DeprecatedLower(); |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 inline bool IsShadowHost(const Node* node) { | 1189 inline bool IsShadowHost(const Node* node) { |
| 1190 return node && node->IsElementNode() && ToElement(node)->Shadow(); | 1190 return node && node->IsElementNode() && ToElement(node)->Shadow(); |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 inline bool IsShadowHost(const Node& node) { | 1193 inline bool IsShadowHost(const Node& node) { |
| 1194 return node.IsElementNode() && ToElement(node).Shadow(); | 1194 return node.IsElementNode() && ToElement(node).Shadow(); |
| 1195 } | 1195 } |
| 1196 | 1196 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1229 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1230 static T* Create(const QualifiedName&, Document&) | 1230 static T* Create(const QualifiedName&, Document&) |
| 1231 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1231 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1232 T* T::Create(const QualifiedName& tagName, Document& document) { \ | 1232 T* T::Create(const QualifiedName& tagName, Document& document) { \ |
| 1233 return new T(tagName, document); \ | 1233 return new T(tagName, document); \ |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 } // namespace blink | 1236 } // namespace blink |
| 1237 | 1237 |
| 1238 #endif // Element_h | 1238 #endif // Element_h |
| OLD | NEW |