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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return mode == UASheetMode; | 64 return mode == UASheetMode; |
65 } | 65 } |
66 | 66 |
67 inline bool isInternalPropertyAndValueParsingEnabledForMode(CSSParserMode mode) | 67 inline bool isInternalPropertyAndValueParsingEnabledForMode(CSSParserMode mode) |
68 { | 68 { |
69 return mode == HTMLAttributeMode || mode == UASheetMode; | 69 return mode == HTMLAttributeMode || mode == UASheetMode; |
70 } | 70 } |
71 | 71 |
72 inline bool isUnitLessLengthParsingEnabledForMode(CSSParserMode mode) | 72 inline bool isUnitLessLengthParsingEnabledForMode(CSSParserMode mode) |
73 { | 73 { |
74 return mode == HTMLQuirksMode || mode == HTMLAttributeMode || mode == SVGAtt
ributeMode; | 74 return mode == HTMLAttributeMode || mode == SVGAttributeMode; |
75 } | 75 } |
76 | 76 |
77 inline bool isCSSViewportParsingEnabledForMode(CSSParserMode mode) | 77 inline bool isCSSViewportParsingEnabledForMode(CSSParserMode mode) |
78 { | 78 { |
79 return mode == CSSViewportRuleMode; | 79 return mode == CSSViewportRuleMode; |
80 } | 80 } |
81 | 81 |
82 inline bool isUseCounterEnabledForMode(CSSParserMode mode) | 82 inline bool isUseCounterEnabledForMode(CSSParserMode mode) |
83 { | 83 { |
84 // We don't count the UA style sheet in our statistics. | 84 // We don't count the UA style sheet in our statistics. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; | 135 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; |
136 | 136 |
137 UseCounter* m_useCounter; | 137 UseCounter* m_useCounter; |
138 }; | 138 }; |
139 | 139 |
140 const CSSParserContext& strictCSSParserContext(); | 140 const CSSParserContext& strictCSSParserContext(); |
141 | 141 |
142 }; | 142 }; |
143 | 143 |
144 #endif // CSSParserMode_h | 144 #endif // CSSParserMode_h |
OLD | NEW |