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

Unified Diff: Source/bindings/core/v8/PrivateScriptRunner.cpp

Issue 394773003: Implement HTMLMarqueeElement's animation in private scripts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
Index: Source/bindings/core/v8/PrivateScriptRunner.cpp
diff --git a/Source/bindings/core/v8/PrivateScriptRunner.cpp b/Source/bindings/core/v8/PrivateScriptRunner.cpp
index 491578038954b98bb5ccf68ea57d0f01cf68c269..eb80fbffea257c20aaf0faafc8ed79cd51cb586a 100644
--- a/Source/bindings/core/v8/PrivateScriptRunner.cpp
+++ b/Source/bindings/core/v8/PrivateScriptRunner.cpp
@@ -98,6 +98,11 @@ static void initializeHolderIfNeeded(ScriptState* scriptState, v8::Handle<v8::Ob
RELEASE_ASSERT_NOT_REACHED();
}
}
+
+ if (classObject->GetPrototype() != holderObject->GetPrototype())
+ classObject->SetPrototype(holderObject->GetPrototype());
+ holderObject->SetPrototype(classObject);
+
isInitialized = v8Boolean(true, isolate);
V8HiddenValue::setHiddenValue(isolate, holderObject, V8HiddenValue::privateScriptObjectIsInitialized(isolate), isInitialized);
}
« no previous file with comments | « no previous file | Source/bindings/core/v8/PrivateScriptRunner.js » ('j') | Source/core/html/HTMLMarqueeElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698