diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.cc b/chromium/third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.cc index 3499347c498..c5471a9b66b 100644 --- a/chromium/third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.cc +++ b/chromium/third_party/blink/renderer/core/css/cssom/style_property_map_read_only_main_thread.cc @@ -45,7 +45,7 @@ class StylePropertyMapIterationSource final return true; } - void Trace(blink::Visitor* visitor) override { + void Trace(Visitor* visitor) override { visitor->Trace(values_); PairIterable<String, CSSStyleValueVector>::IterationSource::Trace(visitor); } @@ -62,7 +62,8 @@ CSSStyleValue* StylePropertyMapReadOnlyMainThread::get( const ExecutionContext* execution_context, const String& property_name, ExceptionState& exception_state) const { - base::Optional<CSSPropertyName> name = CSSPropertyName::From(property_name); + base::Optional<CSSPropertyName> name = + CSSPropertyName::From(execution_context, property_name); if (!name) { exception_state.ThrowTypeError("Invalid propertyName: " + property_name); @@ -94,7 +95,8 @@ CSSStyleValueVector StylePropertyMapReadOnlyMainThread::getAll( const ExecutionContext* execution_context, const String& property_name, ExceptionState& exception_state) const { - base::Optional<CSSPropertyName> name = CSSPropertyName::From(property_name); + base::Optional<CSSPropertyName> name = + CSSPropertyName::From(execution_context, property_name); if (!name) { exception_state.ThrowTypeError("Invalid propertyName: " + property_name); @@ -145,7 +147,7 @@ CSSStyleValue* StylePropertyMapReadOnlyMainThread::GetShorthandProperty( const auto serialization = SerializationForShorthand(property); if (serialization.IsEmpty()) return nullptr; - return CSSUnsupportedStyleValue::Create( + return MakeGarbageCollected<CSSUnsupportedStyleValue>( CSSPropertyName(property.PropertyID()), serialization); } |