Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: Source/core/css/parser/CSSParserMode.h

Issue 764703002: Support unit-less lengths for white-list of properties only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: min-width/height still accepts unitless lengths Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/mask-box-image-crash.html ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698