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

Unified Diff: Source/core/html/HTMLMarqueeElement.js

Issue 419683003: Inject a prototype object of a private script into the prototype chain of a holder object (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
« no previous file with comments | « Source/bindings/core/v8/PrivateScriptRunner.js ('k') | Source/core/testing/PrivateScriptTest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMarqueeElement.js
diff --git a/Source/core/html/HTMLMarqueeElement.js b/Source/core/html/HTMLMarqueeElement.js
index b18756327e29177580caa63a03ee0f0a09b72ccc..f867151b39e10c121dc26640cf79f4174de90816 100644
--- a/Source/core/html/HTMLMarqueeElement.js
+++ b/Source/core/html/HTMLMarqueeElement.js
@@ -4,7 +4,7 @@
'use strict';
-installClass('HTMLMarqueeElement', function(global) {
+installClass('HTMLMarqueeElement', function(global, HTMLMarqueeElementPrototype) {
var kDefaultScrollAmount = 6;
var kDefaultScrollDelayMS = 85;
@@ -107,8 +107,6 @@ installClass('HTMLMarqueeElement', function(global) {
});
}
- var HTMLMarqueeElementPrototype = Object.create(HTMLElement.prototype);
-
reflectAttribute(HTMLMarqueeElementPrototype, 'behavior', 'behavior');
reflectAttribute(HTMLMarqueeElementPrototype, 'bgcolor', 'bgColor');
reflectAttribute(HTMLMarqueeElementPrototype, 'direction', 'direction');
@@ -425,6 +423,4 @@ installClass('HTMLMarqueeElement', function(global) {
// global.document.registerElement('i-marquee', {
// prototype: HTMLMarqueeElementPrototype,
// });
-
- return HTMLMarqueeElementPrototype;
});
« no previous file with comments | « Source/bindings/core/v8/PrivateScriptRunner.js ('k') | Source/core/testing/PrivateScriptTest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698