| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSParserContext_h | 5 #ifndef CSSParserContext_h |
| 6 #define CSSParserContext_h | 6 #define CSSParserContext_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/css/parser/CSSParserMode.h" | 9 #include "core/css/parser/CSSParserMode.h" |
| 10 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 10 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 static CSSParserContext* create(CSSParserMode, | 39 static CSSParserContext* create(CSSParserMode, |
| 40 SelectorProfile = DynamicProfile, | 40 SelectorProfile = DynamicProfile, |
| 41 UseCounter* = nullptr); | 41 UseCounter* = nullptr); |
| 42 // FIXME: We shouldn't need the UseCounter argument as we could infer it from | 42 // FIXME: We shouldn't need the UseCounter argument as we could infer it from |
| 43 // the Document but some callers want to disable use counting (e.g. the | 43 // the Document but some callers want to disable use counting (e.g. the |
| 44 // WebInspector). | 44 // WebInspector). |
| 45 static CSSParserContext* create(const Document&, UseCounter*); | 45 static CSSParserContext* create(const Document&, UseCounter*); |
| 46 static CSSParserContext* create(const Document&, | 46 static CSSParserContext* create(const Document&, |
| 47 const KURL& baseURLOverride = KURL(), | 47 const KURL& baseURLOverride = KURL(), |
| 48 const String& charset = emptyString(), | 48 const String& charset = emptyString, |
| 49 SelectorProfile = DynamicProfile, | 49 SelectorProfile = DynamicProfile, |
| 50 UseCounter* = nullptr); | 50 UseCounter* = nullptr); |
| 51 | 51 |
| 52 bool operator==(const CSSParserContext&) const; | 52 bool operator==(const CSSParserContext&) const; |
| 53 bool operator!=(const CSSParserContext& other) const { | 53 bool operator!=(const CSSParserContext& other) const { |
| 54 return !(*this == other); | 54 return !(*this == other); |
| 55 } | 55 } |
| 56 | 56 |
| 57 CSSParserMode mode() const { return m_mode; } | 57 CSSParserMode mode() const { return m_mode; } |
| 58 CSSParserMode matchMode() const { return m_matchMode; } | 58 CSSParserMode matchMode() const { return m_matchMode; } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; | 114 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; |
| 115 | 115 |
| 116 UseCounter* m_useCounter; | 116 UseCounter* m_useCounter; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 CORE_EXPORT const CSSParserContext* strictCSSParserContext(); | 119 CORE_EXPORT const CSSParserContext* strictCSSParserContext(); |
| 120 | 120 |
| 121 } // namespace blink | 121 } // namespace blink |
| 122 | 122 |
| 123 #endif // CSSParserContext_h | 123 #endif // CSSParserContext_h |
| OLD | NEW |