| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 Token(int t, EqTestOp::Opcode v): type(t), eqop(v) { } | 55 Token(int t, EqTestOp::Opcode v): type(t), eqop(v) { } |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 class Parser { | 58 class Parser { |
| 59 WTF_MAKE_NONCOPYABLE(Parser); | 59 WTF_MAKE_NONCOPYABLE(Parser); |
| 60 public: | 60 public: |
| 61 Parser(); | 61 Parser(); |
| 62 ~Parser(); | 62 ~Parser(); |
| 63 | 63 |
| 64 XPathNSResolver* resolver() const { return m_resolver.get(); } | 64 XPathNSResolver* resolver() const { return m_resolver.get(); } |
| 65 bool expandQName(const String& qName, String& localName, String& namespaceUR
I); | 65 bool expandQName(const String& qName, AtomicString& localName, AtomicString&
namespaceURI); |
| 66 | 66 |
| 67 Expression* parseStatement(const String& statement, PassRefPtr<XPathNSResolv
er>, ExceptionState&); | 67 Expression* parseStatement(const String& statement, PassRefPtr<XPathNSResolv
er>, ExceptionState&); |
| 68 | 68 |
| 69 static Parser* current() { return currentParser; } | 69 static Parser* current() { return currentParser; } |
| 70 | 70 |
| 71 int lex(void* yylval); | 71 int lex(void* yylval); |
| 72 | 72 |
| 73 Expression* m_topExpr; | 73 Expression* m_topExpr; |
| 74 bool m_gotNamespaceError; | 74 bool m_gotNamespaceError; |
| 75 | 75 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 HashSet<Vector<OwnPtr<Expression> >*> m_expressionVectors; | 120 HashSet<Vector<OwnPtr<Expression> >*> m_expressionVectors; |
| 121 HashSet<String*> m_strings; | 121 HashSet<String*> m_strings; |
| 122 HashSet<Step::NodeTest*> m_nodeTests; | 122 HashSet<Step::NodeTest*> m_nodeTests; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // XPath | 125 } // XPath |
| 126 | 126 |
| 127 } // WebCore | 127 } // WebCore |
| 128 | 128 |
| 129 #endif | 129 #endif |
| OLD | NEW |