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

Side by Side Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyLengthUtils.h

Issue 2827963003: Added null safety for CSSParserContext in CSSPropertyLengthUtils. (Closed)
Patch Set: addressed review Created 3 years, 8 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 // 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698