| 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 13 matching lines...) Expand all Loading... |
| 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 28 * SUCH DAMAGE. | 28 * SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef CSSParserMode_h | 31 #ifndef CSSParserMode_h |
| 32 #define CSSParserMode_h | 32 #define CSSParserMode_h |
| 33 | 33 |
| 34 #include "weborigin/KURL.h" | 34 #include "platform/weborigin/KURL.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class Document; | 38 class Document; |
| 39 | 39 |
| 40 // Must not grow beyond 3 bytes, due to packing in StylePropertySet. | 40 // Must not grow beyond 3 bytes, due to packing in StylePropertySet. |
| 41 enum CSSParserMode { | 41 enum CSSParserMode { |
| 42 HTMLStandardMode, | 42 HTMLStandardMode, |
| 43 HTMLQuirksMode, | 43 HTMLQuirksMode, |
| 44 // HTML attributes are parsed in quirks mode but also allows internal proper
ties and values. | 44 // HTML attributes are parsed in quirks mode but also allows internal proper
ties and values. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 bool operator==(const CSSParserContext&, const CSSParserContext&); | 108 bool operator==(const CSSParserContext&, const CSSParserContext&); |
| 109 inline bool operator!=(const CSSParserContext& a, const CSSParserContext& b) { r
eturn !(a == b); } | 109 inline bool operator!=(const CSSParserContext& a, const CSSParserContext& b) { r
eturn !(a == b); } |
| 110 | 110 |
| 111 const CSSParserContext& strictCSSParserContext(); | 111 const CSSParserContext& strictCSSParserContext(); |
| 112 | 112 |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 #endif // CSSParserMode_h | 115 #endif // CSSParserMode_h |
| OLD | NEW |