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

Unified Diff: Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp

Issue 12092048: Merge 140748 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 months 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
« no previous file with comments | « LayoutTests/fast/history/replacestate-nocrash-expected.txt ('k') | Source/WebCore/history/HistoryItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp
===================================================================
--- Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp (revision 141135)
+++ Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp (working copy)
@@ -51,7 +51,7 @@
if (!value.IsEmpty() && !history->stateChanged())
return value;
- SerializedScriptValue* serialized = history->state();
+ RefPtr<SerializedScriptValue> serialized = history->state();
value = serialized ? serialized->deserialize(0, info.GetIsolate()) : v8::Handle<v8::Value>(v8Null(info.GetIsolate()));
info.Holder()->SetHiddenValue(V8HiddenPropertyName::state(), value);
« no previous file with comments | « LayoutTests/fast/history/replacestate-nocrash-expected.txt ('k') | Source/WebCore/history/HistoryItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698