| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSPropertyLengthUtils_h | 5 #ifndef CSSPropertyLengthUtils_h |
| 6 #define CSSPropertyLengthUtils_h | 6 #define CSSPropertyLengthUtils_h |
| 7 | 7 |
| 8 #include "core/css/parser/CSSPropertyParserHelpers.h" | 8 #include "core/css/parser/CSSPropertyParserHelpers.h" |
| 9 #include "platform/wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class CSSParserContext; | 13 class CSSParserContext; |
| 14 class CSSParserTokenRange; | 14 class CSSParserTokenRange; |
| 15 class CSSValue; | 15 class CSSValue; |
| 16 | 16 |
| 17 class CSSPropertyLengthUtils { | 17 class CSSPropertyLengthUtils { |
| 18 STATIC_ONLY(CSSPropertyLengthUtils); | 18 STATIC_ONLY(CSSPropertyLengthUtils); |
| 19 | 19 |
| 20 static CSSValue* ConsumeMaxWidthOrHeight( | 20 static CSSValue* ConsumeMaxWidthOrHeight( |
| 21 CSSParserTokenRange&, | 21 CSSParserTokenRange&, |
| 22 const CSSParserContext*, | 22 const CSSParserContext&, |
| 23 CSSPropertyParserHelpers::UnitlessQuirk = | 23 CSSPropertyParserHelpers::UnitlessQuirk = |
| 24 CSSPropertyParserHelpers::UnitlessQuirk::kForbid); | 24 CSSPropertyParserHelpers::UnitlessQuirk::kForbid); |
| 25 static CSSValue* ConsumeWidthOrHeight( | 25 static CSSValue* ConsumeWidthOrHeight( |
| 26 CSSParserTokenRange&, | 26 CSSParserTokenRange&, |
| 27 const CSSParserContext*, | 27 const CSSParserContext&, |
| 28 CSSPropertyParserHelpers::UnitlessQuirk = | 28 CSSPropertyParserHelpers::UnitlessQuirk = |
| 29 CSSPropertyParserHelpers::UnitlessQuirk::kForbid); | 29 CSSPropertyParserHelpers::UnitlessQuirk::kForbid); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace blink | 32 } // namespace blink |
| 33 | 33 |
| 34 #endif // CSSPropertyLengthUtils_h | 34 #endif // CSSPropertyLengthUtils_h |
| OLD | NEW |