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

Side by Side Diff: third_party/WebKit/Source/core/css/properties/CSSShorthandPropertyAPIBorderRadius.cpp

Issue 2938983002: Implement parseShorthand API for shorthand properties, "overflow", "font" and "font-variant" (Closed)
Patch Set: Replace ImplicitProperty by IsImplicitProperty Created 3 years, 6 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 #include "core/css/properties/CSSShorthandPropertyAPIBorderRadius.h" 5 #include "core/css/properties/CSSShorthandPropertyAPIBorderRadius.h"
6 6
7 #include "core/css/CSSValuePair.h" 7 #include "core/css/CSSValuePair.h"
8 #include "core/css/parser/CSSParserContext.h" 8 #include "core/css/parser/CSSParserContext.h"
9 #include "core/css/parser/CSSParserLocalContext.h" 9 #include "core/css/parser/CSSParserLocalContext.h"
10 #include "core/css/parser/CSSPropertyParserHelpers.h" 10 #include "core/css/parser/CSSPropertyParserHelpers.h"
(...skipping 12 matching lines...) Expand all
23 23
24 if (!CSSPropertyShapeUtils::ConsumeRadii(horizontal_radii, vertical_radii, 24 if (!CSSPropertyShapeUtils::ConsumeRadii(horizontal_radii, vertical_radii,
25 range, context.Mode(), 25 range, context.Mode(),
26 local_context.UseAliasParsing())) 26 local_context.UseAliasParsing()))
27 return false; 27 return false;
28 28
29 CSSPropertyParserHelpers::AddProperty( 29 CSSPropertyParserHelpers::AddProperty(
30 CSSPropertyBorderTopLeftRadius, CSSPropertyBorderRadius, 30 CSSPropertyBorderTopLeftRadius, CSSPropertyBorderRadius,
31 *CSSValuePair::Create(horizontal_radii[0], vertical_radii[0], 31 *CSSValuePair::Create(horizontal_radii[0], vertical_radii[0],
32 CSSValuePair::kDropIdenticalValues), 32 CSSValuePair::kDropIdenticalValues),
33 important, false /* implicit */, properties); 33 important, CSSPropertyParserHelpers::IsImplicitProperty::kNotImplicit,
34 properties);
34 CSSPropertyParserHelpers::AddProperty( 35 CSSPropertyParserHelpers::AddProperty(
35 CSSPropertyBorderTopRightRadius, CSSPropertyBorderRadius, 36 CSSPropertyBorderTopRightRadius, CSSPropertyBorderRadius,
36 *CSSValuePair::Create(horizontal_radii[1], vertical_radii[1], 37 *CSSValuePair::Create(horizontal_radii[1], vertical_radii[1],
37 CSSValuePair::kDropIdenticalValues), 38 CSSValuePair::kDropIdenticalValues),
38 important, false /* implicit */, properties); 39 important, CSSPropertyParserHelpers::IsImplicitProperty::kNotImplicit,
40 properties);
39 CSSPropertyParserHelpers::AddProperty( 41 CSSPropertyParserHelpers::AddProperty(
40 CSSPropertyBorderBottomRightRadius, CSSPropertyBorderRadius, 42 CSSPropertyBorderBottomRightRadius, CSSPropertyBorderRadius,
41 *CSSValuePair::Create(horizontal_radii[2], vertical_radii[2], 43 *CSSValuePair::Create(horizontal_radii[2], vertical_radii[2],
42 CSSValuePair::kDropIdenticalValues), 44 CSSValuePair::kDropIdenticalValues),
43 important, false /* implicit */, properties); 45 important, CSSPropertyParserHelpers::IsImplicitProperty::kNotImplicit,
46 properties);
44 CSSPropertyParserHelpers::AddProperty( 47 CSSPropertyParserHelpers::AddProperty(
45 CSSPropertyBorderBottomLeftRadius, CSSPropertyBorderRadius, 48 CSSPropertyBorderBottomLeftRadius, CSSPropertyBorderRadius,
46 *CSSValuePair::Create(horizontal_radii[3], vertical_radii[3], 49 *CSSValuePair::Create(horizontal_radii[3], vertical_radii[3],
47 CSSValuePair::kDropIdenticalValues), 50 CSSValuePair::kDropIdenticalValues),
48 important, false /* implicit */, properties); 51 important, CSSPropertyParserHelpers::IsImplicitProperty::kNotImplicit,
52 properties);
49 return true; 53 return true;
50 } 54 }
51 55
52 } // namespace blink 56 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698