Index: Source/bindings/core/v8/CustomElementConstructorBuilder.cpp |
diff --git a/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp b/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp |
index 06bedc504815e6ecf339421574cfa0525f1f0640..14605bec93a384ac61ac626f0b0c8587535e2568 100644 |
--- a/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp |
+++ b/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp |
@@ -34,6 +34,7 @@ |
#include "bindings/core/v8/CustomElementBinding.h" |
#include "bindings/core/v8/DOMWrapperWorld.h" |
#include "bindings/core/v8/Dictionary.h" |
+#include "bindings/core/v8/DictionaryHelper.h" |
#include "bindings/core/v8/ExceptionState.h" |
#include "bindings/core/v8/V8Binding.h" |
#include "bindings/core/v8/V8Document.h" |
@@ -74,7 +75,7 @@ bool CustomElementConstructorBuilder::validateOptions(const AtomicString& type, |
v8::TryCatch tryCatch; |
ScriptValue prototypeScriptValue; |
- if (m_options->get("prototype", prototypeScriptValue) && !prototypeScriptValue.isNull()) { |
+ if (DictionaryHelper::get(*m_options, "prototype", prototypeScriptValue) && !prototypeScriptValue.isNull()) { |
ASSERT(!tryCatch.HasCaught()); |
if (!prototypeScriptValue.isObject()) { |
CustomElementException::throwException(CustomElementException::PrototypeNotAnObject, type, exceptionState); |
@@ -95,7 +96,7 @@ bool CustomElementConstructorBuilder::validateOptions(const AtomicString& type, |
} |
AtomicString extends; |
- bool extendsProvidedAndNonNull = m_options->get("extends", extends); |
+ bool extendsProvidedAndNonNull = DictionaryHelper::get(*m_options, "extends", extends); |
if (tryCatch.HasCaught()) { |
tryCatch.ReThrow(); |