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

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

Issue 756053002: [Blink-in-JS] Migrate the PrivateScript specific methods/attributes to ScriptController (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ScriptController => PrivateScriptController 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
« no previous file with comments | « Source/bindings/core/v8/PrivateScriptRunner.js ('k') | Source/core/html/shadow/PluginPlaceholderElement.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 e99d34df7e3428d52e2844f92572ab0e0fe4dbe6..0001a19f48f1aac4dbe873158f8799322c9a4076 100644
--- a/Source/core/html/HTMLMarqueeElement.js
+++ b/Source/core/html/HTMLMarqueeElement.js
@@ -4,7 +4,7 @@
'use strict';
-installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
+privateScriptController.installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
var kDefaultScrollAmount = 6;
var kDefaultScrollDelayMS = 85;
@@ -163,7 +163,7 @@ installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
},
set: function(value) {
if (value < 0)
- throwException(PrivateScriptDOMException.IndexSizeError, "The provided value (" + value + ") is negative.");
+ privateScriptController.throwException(privateScriptController.DOMException.IndexSizeError, "The provided value (" + value + ") is negative.");
this.setAttribute('scrollamount', value);
},
});
@@ -178,7 +178,7 @@ installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
},
set: function(value) {
if (value < 0)
- throwException(PrivateScriptDOMException.IndexSizeError, "The provided value (" + value + ") is negative.");
+ privateScriptController.throwException(privateScriptController.DOMException.IndexSizeError, "The provided value (" + value + ") is negative.");
this.setAttribute('scrolldelay', value);
},
});
@@ -193,7 +193,7 @@ installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
},
set: function(value) {
if (value <= 0 && value != -1)
- throwException(PrivateScriptDOMException.IndexSizeError, "The provided value (" + value + ") is neither positive nor -1.");
+ privateScriptController.throwException(privateScriptController.DOMException.IndexSizeError, "The provided value (" + value + ") is neither positive nor -1.");
this.setAttribute('loop', value);
},
});
« no previous file with comments | « Source/bindings/core/v8/PrivateScriptRunner.js ('k') | Source/core/html/shadow/PluginPlaceholderElement.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698