| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
| 3 * Copyright (C) 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 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 | 9 * 1. Redistributions of source code must retain the above |
| 10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 class UseCounter; | 82 class UseCounter; |
| 83 | 83 |
| 84 class CORE_EXPORT CSSParserContext { | 84 class CORE_EXPORT CSSParserContext { |
| 85 USING_FAST_MALLOC(CSSParserContext); | 85 USING_FAST_MALLOC(CSSParserContext); |
| 86 | 86 |
| 87 public: | 87 public: |
| 88 // https://drafts.csswg.org/selectors/#profiles | 88 // https://drafts.csswg.org/selectors/#profiles |
| 89 enum SelectorProfile { DynamicProfile, StaticProfile }; | 89 enum SelectorProfile { DynamicProfile, StaticProfile }; |
| 90 | 90 |
| 91 CSSParserContext(CSSParserMode, UseCounter*); | 91 CSSParserContext(CSSParserMode, |
| 92 UseCounter*, |
| 93 SelectorProfile = DynamicProfile); |
| 92 // FIXME: We shouldn't need the UseCounter argument as we could infer it from | 94 // FIXME: We shouldn't need the UseCounter argument as we could infer it from |
| 93 // the Document but some callers want to disable use counting (e.g. the | 95 // the Document but some callers want to disable use counting (e.g. the |
| 94 // WebInspector). | 96 // WebInspector). |
| 95 CSSParserContext(const Document&, | 97 CSSParserContext(const Document&, |
| 96 UseCounter*, | 98 UseCounter*, |
| 97 const KURL& baseURL = KURL(), | 99 const KURL& baseURL = KURL(), |
| 98 const String& charset = emptyString(), | 100 const String& charset = emptyString(), |
| 99 SelectorProfile = DynamicProfile); | 101 SelectorProfile = DynamicProfile); |
| 100 // FIXME: This constructor shouldn't exist if we properly piped the UseCounter | 102 // FIXME: This constructor shouldn't exist if we properly piped the UseCounter |
| 101 // through the CSS subsystem. Currently the UseCounter life time is too crazy | 103 // through the CSS subsystem. Currently the UseCounter life time is too crazy |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; | 155 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; |
| 154 | 156 |
| 155 UseCounter* m_useCounter; | 157 UseCounter* m_useCounter; |
| 156 }; | 158 }; |
| 157 | 159 |
| 158 CORE_EXPORT const CSSParserContext& strictCSSParserContext(); | 160 CORE_EXPORT const CSSParserContext& strictCSSParserContext(); |
| 159 | 161 |
| 160 } // namespace blink | 162 } // namespace blink |
| 161 | 163 |
| 162 #endif // CSSParserMode_h | 164 #endif // CSSParserMode_h |
| OLD | NEW |