Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / HTMLMarqueeElement.js
index 142e2f2..aecd5d7 100644 (file)
@@ -196,7 +196,7 @@ installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
         },
         set: function(value) {
             if (value < 0)
-                throw new DOMExceptionInPrivateScript("IndexSizeError", "The provided value (" + value + ") is negative.");
+                throwException(PrivateScriptDOMException.IndexSizeError, "The provided value (" + value + ") is negative.");
             this.setAttribute('scrollamount', value);
         },
     });
@@ -211,7 +211,7 @@ installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
         },
         set: function(value) {
             if (value < 0)
-                throw new DOMExceptionInPrivateScript("IndexSizeError", "The provided value (" + value + ") is negative.");
+                throwException(PrivateScriptDOMException.IndexSizeError, "The provided value (" + value + ") is negative.");
             this.setAttribute('scrolldelay', value);
         },
     });
@@ -226,7 +226,7 @@ installClass('HTMLMarqueeElement', function(HTMLMarqueeElementPrototype) {
         },
         set: function(value) {
             if (value <= 0 && value != -1)
-                throw new DOMExceptionInPrivateScript("IndexSizeError", "The provided value (" + value + ") is neither positive nor -1.");
+                throwException(PrivateScriptDOMException.IndexSizeError, "The provided value (" + value + ") is neither positive nor -1.");
             this.setAttribute('loop', value);
         },
     });