diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/css_property_value.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/css/css_property_value.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/css_property_value.cc b/chromium/third_party/blink/renderer/core/css/css_property_value.cc index 8d7ee819a7e..8d9162ecd74 100644 --- a/chromium/third_party/blink/renderer/core/css/css_property_value.cc +++ b/chromium/third_party/blink/renderer/core/css/css_property_value.cc @@ -20,6 +20,8 @@ #include "third_party/blink/renderer/core/css/css_property_value.h" +#include "third_party/blink/renderer/core/css/css_custom_property_declaration.h" +#include "third_party/blink/renderer/core/css/css_property_name.h" #include "third_party/blink/renderer/core/style/computed_style_constants.h" #include "third_party/blink/renderer/core/style_property_shorthand.h" @@ -46,6 +48,12 @@ CSSPropertyID CSSPropertyValueMetadata::ShorthandID() const { return shorthands.at(index_in_shorthands_vector_).id(); } +CSSPropertyName CSSPropertyValue::Name() const { + if (Id() != CSSPropertyVariable) + return CSSPropertyName(Id()); + return CSSPropertyName(ToCSSCustomPropertyDeclaration(value_)->GetName()); +} + bool CSSPropertyValue::operator==(const CSSPropertyValue& other) const { return DataEquivalent(value_, other.value_) && IsImportant() == other.IsImportant(); |