summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/parser/css_property_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/parser/css_property_parser.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/css/parser/css_property_parser.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/parser/css_property_parser.cc b/chromium/third_party/blink/renderer/core/css/parser/css_property_parser.cc
index 1f44e2df51b..33bfdf16fe7 100644
--- a/chromium/third_party/blink/renderer/core/css/parser/css_property_parser.cc
+++ b/chromium/third_party/blink/renderer/core/css/parser/css_property_parser.cc
@@ -23,7 +23,7 @@
namespace blink {
-using namespace CSSPropertyParserHelpers;
+using namespace css_property_parser_helpers;
class CSSIdentifierValue;
@@ -96,13 +96,14 @@ bool CSSPropertyParser::ParseValueStart(CSSPropertyID unresolved_property,
bool is_shorthand = property.IsShorthand();
DCHECK(context_);
if (is_shorthand) {
+ const auto local_context =
+ CSSParserLocalContext()
+ .WithAliasParsing(isPropertyAlias(unresolved_property))
+ .WithCurrentShorthand(property_id);
// Variable references will fail to parse here and will fall out to the
// variable ref parser below.
if (ToShorthand(property).ParseShorthand(
- important, range_, *context_,
- CSSParserLocalContext(isPropertyAlias(unresolved_property),
- property_id),
- *parsed_properties_))
+ important, range_, *context_, local_context, *parsed_properties_))
return true;
} else {
if (const CSSValue* parsed_value = ParseLonghand(