OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> |
3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 if (name == g_star_atom) | 211 if (name == g_star_atom) |
212 return namespace_uri.IsEmpty() || | 212 return namespace_uri.IsEmpty() || |
213 namespace_uri == element.namespaceURI(); | 213 namespace_uri == element.namespaceURI(); |
214 | 214 |
215 if (element.GetDocument().IsHTMLDocument()) { | 215 if (element.GetDocument().IsHTMLDocument()) { |
216 if (element.IsHTMLElement()) { | 216 if (element.IsHTMLElement()) { |
217 // Paths without namespaces should match HTML elements in HTML | 217 // Paths without namespaces should match HTML elements in HTML |
218 // documents despite those having an XHTML namespace. Names are | 218 // documents despite those having an XHTML namespace. Names are |
219 // compared case-insensitively. | 219 // compared case-insensitively. |
220 return EqualIgnoringCase(element.localName(), name) && | 220 return DeprecatedEqualIgnoringCase(element.localName(), name) && |
221 (namespace_uri.IsNull() || | 221 (namespace_uri.IsNull() || |
222 namespace_uri == element.namespaceURI()); | 222 namespace_uri == element.namespaceURI()); |
223 } | 223 } |
224 // An expression without any prefix shouldn't match no-namespace | 224 // An expression without any prefix shouldn't match no-namespace |
225 // nodes (because HTML5 says so). | 225 // nodes (because HTML5 says so). |
226 return element.HasLocalName(name) && | 226 return element.HasLocalName(name) && |
227 namespace_uri == element.namespaceURI() && | 227 namespace_uri == element.namespaceURI() && |
228 !namespace_uri.IsNull(); | 228 !namespace_uri.IsNull(); |
229 } | 229 } |
230 return element.HasLocalName(name) && | 230 return element.HasLocalName(name) && |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 nodes.MarkSorted(false); | 451 nodes.MarkSorted(false); |
452 return; | 452 return; |
453 } | 453 } |
454 } | 454 } |
455 NOTREACHED(); | 455 NOTREACHED(); |
456 } | 456 } |
457 | 457 |
458 } // namespace XPath | 458 } // namespace XPath |
459 | 459 |
460 } // namespace blink | 460 } // namespace blink |
OLD | NEW |