| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> | 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/xml/XPathNSResolver.h" | 35 #include "core/xml/XPathNSResolver.h" |
| 36 #include "core/xml/XPathPath.h" | 36 #include "core/xml/XPathPath.h" |
| 37 #include "wtf/StdLibExtras.h" | 37 #include "wtf/StdLibExtras.h" |
| 38 #include "wtf/text/StringHash.h" | 38 #include "wtf/text/StringHash.h" |
| 39 | 39 |
| 40 using namespace blink; | 40 using namespace blink; |
| 41 using namespace WTF; | 41 using namespace WTF; |
| 42 using namespace Unicode; | 42 using namespace Unicode; |
| 43 using namespace XPath; | 43 using namespace XPath; |
| 44 | 44 |
| 45 Parser* Parser::currentParser = 0; | 45 Parser* Parser::currentParser = nullptr; |
| 46 | 46 |
| 47 enum XMLCat { NameStart, NameCont, NotPartOfName }; | 47 enum XMLCat { NameStart, NameCont, NotPartOfName }; |
| 48 | 48 |
| 49 typedef HashMap<String, Step::Axis> AxisNamesMap; | 49 typedef HashMap<String, Step::Axis> AxisNamesMap; |
| 50 | 50 |
| 51 static XMLCat charCat(UChar aChar) | 51 static XMLCat charCat(UChar aChar) |
| 52 { | 52 { |
| 53 // might need to add some special cases from the XML spec. | 53 // might need to add some special cases from the XML spec. |
| 54 | 54 |
| 55 if (aChar == '_') | 55 if (aChar == '_') |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 | 506 |
| 507 void Parser::deleteString(String* s) | 507 void Parser::deleteString(String* s) |
| 508 { | 508 { |
| 509 if (s == 0) | 509 if (s == 0) |
| 510 return; | 510 return; |
| 511 | 511 |
| 512 ASSERT(m_strings.contains(s)); | 512 ASSERT(m_strings.contains(s)); |
| 513 | 513 |
| 514 m_strings.remove(s); | 514 m_strings.remove(s); |
| 515 } | 515 } |
| OLD | NEW |