| 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 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef XPathParser_h | 27 #ifndef XPathParser_h |
| 28 #define XPathParser_h | 28 #define XPathParser_h |
| 29 | 29 |
| 30 #include "core/xml/XPathPredicate.h" | 30 #include "core/xml/XPathPredicate.h" |
| 31 #include "core/xml/XPathStep.h" | 31 #include "core/xml/XPathStep.h" |
| 32 #include "wtf/Allocator.h" | 32 #include "wtf/Allocator.h" |
| 33 #include <memory> |
| 33 | 34 |
| 34 namespace blink { | 35 namespace blink { |
| 35 | 36 |
| 36 class ExceptionState; | 37 class ExceptionState; |
| 37 class XPathNSResolver; | 38 class XPathNSResolver; |
| 38 | 39 |
| 39 namespace XPath { | 40 namespace XPath { |
| 40 | 41 |
| 41 class Expression; | 42 class Expression; |
| 42 class LocationPath; | 43 class LocationPath; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 102 |
| 102 void reset(const String& data); | 103 void reset(const String& data); |
| 103 | 104 |
| 104 static Parser* currentParser; | 105 static Parser* currentParser; |
| 105 | 106 |
| 106 unsigned m_nextPos; | 107 unsigned m_nextPos; |
| 107 String m_data; | 108 String m_data; |
| 108 int m_lastTokenType; | 109 int m_lastTokenType; |
| 109 Member<XPathNSResolver> m_resolver; | 110 Member<XPathNSResolver> m_resolver; |
| 110 | 111 |
| 111 HashSet<OwnPtr<String>> m_strings; | 112 HashSet<std::unique_ptr<String>> m_strings; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace XPath | 115 } // namespace XPath |
| 115 | 116 |
| 116 } // namespace blink | 117 } // namespace blink |
| 117 | 118 |
| 118 int xpathyyparse(blink::XPath::Parser*); | 119 int xpathyyparse(blink::XPath::Parser*); |
| 119 #endif | 120 #endif |
| OLD | NEW |