| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 Token(int t, EqTestOp::Opcode v): type(t), eqop(v) { } | 59 Token(int t, EqTestOp::Opcode v): type(t), eqop(v) { } |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 class Parser { | 62 class Parser { |
| 63 WTF_MAKE_NONCOPYABLE(Parser); | 63 WTF_MAKE_NONCOPYABLE(Parser); |
| 64 STACK_ALLOCATED(); | 64 STACK_ALLOCATED(); |
| 65 public: | 65 public: |
| 66 Parser(); | 66 Parser(); |
| 67 ~Parser(); | 67 ~Parser(); |
| 68 | 68 |
| 69 XPathNSResolver* resolver() const; | 69 XPathNSResolver* resolver() const { return m_resolver.get(); } |
| 70 bool expandQName(const String& qName, AtomicString& localName, AtomicString&
namespaceURI); | 70 bool expandQName(const String& qName, AtomicString& localName, AtomicString&
namespaceURI); |
| 71 | 71 |
| 72 Expression* parseStatement(const String& statement, XPathNSResolver*, Except
ionState&); | 72 Expression* parseStatement(const String& statement, XPathNSResolver*, Except
ionState&); |
| 73 | 73 |
| 74 static Parser* current() { return currentParser; } | 74 static Parser* current() { return currentParser; } |
| 75 | 75 |
| 76 int lex(void* yylval); | 76 int lex(void* yylval); |
| 77 | 77 |
| 78 Member<Expression> m_topExpr; | 78 Member<Expression> m_topExpr; |
| 79 bool m_gotNamespaceError; | 79 bool m_gotNamespaceError; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 110 | 110 |
| 111 HashSet<OwnPtr<String>> m_strings; | 111 HashSet<OwnPtr<String>> m_strings; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace XPath | 114 } // namespace XPath |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 int xpathyyparse(blink::XPath::Parser*); | 118 int xpathyyparse(blink::XPath::Parser*); |
| 119 #endif | 119 #endif |
| OLD | NEW |