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

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

Issue 24469004: Amusingly deprecate the generic version of 'ExceptionState::throwDOMException'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMarqueeElement.cpp
diff --git a/Source/core/html/HTMLMarqueeElement.cpp b/Source/core/html/HTMLMarqueeElement.cpp
index 5c1fe6dc7b140ea837ea2d57e0789a1d65b73132..946593bd31f05eda5bb527b74be84e740e51cf48 100644
--- a/Source/core/html/HTMLMarqueeElement.cpp
+++ b/Source/core/html/HTMLMarqueeElement.cpp
@@ -131,7 +131,7 @@ int HTMLMarqueeElement::scrollAmount() const
void HTMLMarqueeElement::setScrollAmount(int scrollAmount, ExceptionState& es)
{
if (scrollAmount < 0)
- es.throwDOMException(IndexSizeError);
+ es.throwUninformativeAndGenericDOMException(IndexSizeError);
else
setIntegralAttribute(scrollamountAttr, scrollAmount);
}
@@ -146,7 +146,7 @@ int HTMLMarqueeElement::scrollDelay() const
void HTMLMarqueeElement::setScrollDelay(int scrollDelay, ExceptionState& es)
{
if (scrollDelay < 0)
- es.throwDOMException(IndexSizeError);
+ es.throwUninformativeAndGenericDOMException(IndexSizeError);
else
setIntegralAttribute(scrolldelayAttr, scrollDelay);
}
@@ -161,7 +161,7 @@ int HTMLMarqueeElement::loop() const
void HTMLMarqueeElement::setLoop(int loop, ExceptionState& es)
{
if (loop <= 0 && loop != -1)
- es.throwDOMException(IndexSizeError);
+ es.throwUninformativeAndGenericDOMException(IndexSizeError);
else
setIntegralAttribute(loopAttr, loop);
}
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698