Index: Source/bindings/v8/Dictionary.cpp |
diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp |
index c39a8d627bb5fc24606e99272341294db6d0363a..d3c366385a01cd81295217c236fd669a8b9c1cf1 100644 |
--- a/Source/bindings/v8/Dictionary.cpp |
+++ b/Source/bindings/v8/Dictionary.cpp |
@@ -31,6 +31,7 @@ |
#include "bindings/core/v8/V8EventTarget.h" |
#include "bindings/core/v8/V8MediaKeyError.h" |
#include "bindings/core/v8/V8MessagePort.h" |
+#include "bindings/core/v8/V8Path2D.h" |
#include "bindings/core/v8/V8Storage.h" |
#include "bindings/core/v8/V8TextTrack.h" |
#include "bindings/core/v8/V8VoidCallback.h" |
@@ -429,6 +430,16 @@ bool Dictionary::getWithUndefinedOrNullCheck(const String& key, RefPtrWillBeMemb |
return true; |
} |
+bool Dictionary::getWithUndefinedOrNullCheck(const String& key, RefPtr<Path2D>& value) const |
+{ |
+ v8::Local<v8::Value> v8Value; |
+ if (!getKey(key, v8Value) || WebCore::isUndefinedOrNull(v8Value)) |
+ return false; |
+ |
+ value = V8Path2D::toNativeWithTypeCheck(m_isolate, v8Value); |
+ return true; |
+} |
+ |
bool Dictionary::get(const String& key, RefPtr<Uint8Array>& value) const |
{ |
v8::Local<v8::Value> v8Value; |