| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights |
| 4 * reserved. | 4 * reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef CSSParserSelector_h | 22 #ifndef CSSParserSelector_h |
| 23 #define CSSParserSelector_h | 23 #define CSSParserSelector_h |
| 24 | 24 |
| 25 #include <memory> |
| 25 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
| 26 #include "core/css/CSSSelector.h" | 27 #include "core/css/CSSSelector.h" |
| 27 #include "wtf/PtrUtil.h" | 28 #include "wtf/PtrUtil.h" |
| 28 #include <memory> | |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class CORE_EXPORT CSSParserSelector { | 32 class CORE_EXPORT CSSParserSelector { |
| 33 WTF_MAKE_NONCOPYABLE(CSSParserSelector); | 33 WTF_MAKE_NONCOPYABLE(CSSParserSelector); |
| 34 USING_FAST_MALLOC(CSSParserSelector); | 34 USING_FAST_MALLOC(CSSParserSelector); |
| 35 | 35 |
| 36 public: | 36 public: |
| 37 CSSParserSelector(); | 37 CSSParserSelector(); |
| 38 explicit CSSParserSelector(const QualifiedName&, bool isImplicit = false); | 38 explicit CSSParserSelector(const QualifiedName&, bool isImplicit = false); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); | 116 void prependTagSelector(const QualifiedName&, bool tagIsImplicit = false); |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 std::unique_ptr<CSSSelector> m_selector; | 119 std::unique_ptr<CSSSelector> m_selector; |
| 120 std::unique_ptr<CSSParserSelector> m_tagHistory; | 120 std::unique_ptr<CSSParserSelector> m_tagHistory; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif | 125 #endif |
| OLD | NEW |