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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 CSSParserContext(const CSSParserContext&, UseCounter*); | 95 CSSParserContext(const CSSParserContext&, UseCounter*); |
96 | 96 |
97 bool operator==(const CSSParserContext&) const; | 97 bool operator==(const CSSParserContext&) const; |
98 bool operator!=(const CSSParserContext& other) const { return !(*this == oth
er); } | 98 bool operator!=(const CSSParserContext& other) const { return !(*this == oth
er); } |
99 | 99 |
100 CSSParserMode mode() const { return m_mode; } | 100 CSSParserMode mode() const { return m_mode; } |
101 const KURL& baseURL() const { return m_baseURL; } | 101 const KURL& baseURL() const { return m_baseURL; } |
102 const String& charset() const { return m_charset; } | 102 const String& charset() const { return m_charset; } |
103 const Referrer& referrer() const { return m_referrer; } | 103 const Referrer& referrer() const { return m_referrer; } |
104 bool isHTMLDocument() const { return m_isHTMLDocument; } | 104 bool isHTMLDocument() const { return m_isHTMLDocument; } |
105 | |
106 // This quirk is to maintain compatibility with Android apps built on | 105 // This quirk is to maintain compatibility with Android apps built on |
107 // the Android SDK prior to and including version 18. Presumably, this | 106 // the Android SDK prior to and including version 18. Presumably, this |
108 // can be removed any time after 2015. See http://crbug.com/277157. | 107 // can be removed any time after 2015. See http://crbug.com/277157. |
109 bool useLegacyBackgroundSizeShorthandBehavior() const { return m_useLegacyBa
ckgroundSizeShorthandBehavior; } | 108 bool useLegacyBackgroundSizeShorthandBehavior() const { return m_useLegacyBa
ckgroundSizeShorthandBehavior; } |
110 | 109 |
111 // FIXME: These setters shouldn't exist, however the current lifetime of CSS
ParserContext | 110 // FIXME: These setters shouldn't exist, however the current lifetime of CSS
ParserContext |
112 // is not well understood and thus we sometimes need to override these field
s. | 111 // is not well understood and thus we sometimes need to override these field
s. |
113 void setMode(CSSParserMode mode) { m_mode = mode; } | 112 void setMode(CSSParserMode mode) { m_mode = mode; } |
114 void setBaseURL(const KURL& baseURL) { m_baseURL = baseURL; } | 113 void setBaseURL(const KURL& baseURL) { m_baseURL = baseURL; } |
115 void setCharset(const String& charset) { m_charset = charset; } | 114 void setCharset(const String& charset) { m_charset = charset; } |
(...skipping 17 matching lines...) Expand all Loading... |
133 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; | 132 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; |
134 | 133 |
135 UseCounter* m_useCounter; | 134 UseCounter* m_useCounter; |
136 }; | 135 }; |
137 | 136 |
138 CORE_EXPORT const CSSParserContext& strictCSSParserContext(); | 137 CORE_EXPORT const CSSParserContext& strictCSSParserContext(); |
139 | 138 |
140 }; | 139 }; |
141 | 140 |
142 #endif // CSSParserMode_h | 141 #endif // CSSParserMode_h |
OLD | NEW |