Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp

Issue 718383003: bindings: fixed incorrect dependency of SerializedScriptValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added fast/js/structured-clone.html Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp b/Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp
index c7a2fc8e0949960deb2d35afea756f8ba25151e6..f3b4279eedad1c876ec28cc8ceaf99d104701c45 100644
--- a/Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp
@@ -32,6 +32,7 @@
#include "bindings/core/v8/V8PopStateEvent.h"
#include "bindings/core/v8/SerializedScriptValue.h"
+#include "bindings/core/v8/SerializedScriptValueFactory.h"
#include "bindings/core/v8/V8HiddenValue.h"
#include "bindings/core/v8/V8History.h"
#include "core/events/PopStateEvent.h"
@@ -63,7 +64,7 @@ void V8PopStateEvent::stateAttributeGetterCustom(const v8::PropertyCallbackInfo<
// we need to find the 'state' property on the main world wrapper and clone it.
v8::Local<v8::Value> mainWorldState = V8HiddenValue::getHiddenValueFromMainWorldWrapper(info.GetIsolate(), event, V8HiddenValue::state(info.GetIsolate()));
if (!mainWorldState.IsEmpty())
- event->setSerializedState(SerializedScriptValue::createAndSwallowExceptions(info.GetIsolate(), mainWorldState));
+ event->setSerializedState(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIsolate(), mainWorldState));
}
if (event->serializedState())
result = event->serializedState()->deserialize();
« no previous file with comments | « Source/bindings/core/v8/custom/V8MessageEventCustom.cpp ('k') | Source/bindings/core/v8/custom/V8WindowCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698