| 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 "KURL.h" | 34 #include "core/platform/KURL.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class Document; | 38 class Document; |
| 39 | 39 |
| 40 enum CSSParserMode { | 40 enum CSSParserMode { |
| 41 CSSQuirksMode, | 41 CSSQuirksMode, |
| 42 CSSStrictMode, | 42 CSSStrictMode, |
| 43 // SVG should always be in strict mode. For SVG attributes, the rules differ
to strict sometimes. | 43 // SVG should always be in strict mode. For SVG attributes, the rules differ
to strict sometimes. |
| 44 SVGAttributeMode | 44 SVGAttributeMode |
| (...skipping 29 matching lines...) Expand all Loading... |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 bool operator==(const CSSParserContext&, const CSSParserContext&); | 76 bool operator==(const CSSParserContext&, const CSSParserContext&); |
| 77 inline bool operator!=(const CSSParserContext& a, const CSSParserContext& b) { r
eturn !(a == b); } | 77 inline bool operator!=(const CSSParserContext& a, const CSSParserContext& b) { r
eturn !(a == b); } |
| 78 | 78 |
| 79 const CSSParserContext& strictCSSParserContext(); | 79 const CSSParserContext& strictCSSParserContext(); |
| 80 | 80 |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CSSParserMode_h | 83 #endif // CSSParserMode_h |
| OLD | NEW |