Index: Source/bindings/core/v8/V8NPUtils.cpp |
diff --git a/Source/bindings/v8/V8NPUtils.cpp b/Source/bindings/core/v8/V8NPUtils.cpp |
similarity index 93% |
rename from Source/bindings/v8/V8NPUtils.cpp |
rename to Source/bindings/core/v8/V8NPUtils.cpp |
index df6eefe3b429d368590adf0737e627f0f5533981..5afe311a5ddcd0796e0b883a7a6ab9ad4973b968 100644 |
--- a/Source/bindings/v8/V8NPUtils.cpp |
+++ b/Source/bindings/core/v8/V8NPUtils.cpp |
@@ -29,13 +29,13 @@ |
*/ |
#include "config.h" |
-#include "bindings/v8/V8NPUtils.h" |
+#include "bindings/core/v8/V8NPUtils.h" |
-#include "bindings/v8/NPV8Object.h" |
-#include "bindings/v8/V8Binding.h" |
-#include "bindings/v8/V8NPObject.h" |
-#include "bindings/v8/npruntime_impl.h" |
-#include "bindings/v8/npruntime_priv.h" |
+#include "bindings/core/v8/NPV8Object.h" |
+#include "bindings/core/v8/V8Binding.h" |
+#include "bindings/core/v8/V8NPObject.h" |
+#include "bindings/core/v8/npruntime_impl.h" |
+#include "bindings/core/v8/npruntime_priv.h" |
#include "core/frame/LocalDOMWindow.h" |
#include "wtf/text/WTFString.h" |
@@ -54,15 +54,15 @@ void convertV8ObjectToNPVariant(v8::Local<v8::Value> object, NPObject* owner, NP |
if (object.IsEmpty()) |
return; |
- if (object->IsNumber()) |
+ if (object->IsNumber()) { |
DOUBLE_TO_NPVARIANT(object->NumberValue(), *result); |
- else if (object->IsBoolean()) |
+ } else if (object->IsBoolean()) { |
BOOLEAN_TO_NPVARIANT(object->BooleanValue(), *result); |
- else if (object->IsNull()) |
+ } else if (object->IsNull()) { |
NULL_TO_NPVARIANT(*result); |
- else if (object->IsUndefined()) |
+ } else if (object->IsUndefined()) { |
VOID_TO_NPVARIANT(*result); |
- else if (object->IsString()) { |
+ } else if (object->IsString()) { |
v8::Handle<v8::String> str = object.As<v8::String>(); |
int length = str->Utf8Length() + 1; |
char* utf8Chars = reinterpret_cast<char*>(malloc(length)); |