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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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/HTMLMeterElement.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 e06c90a140c76b17e186cf931c414866a2222ec0..8628e6a70dc6abf20bc58107751090340ceb9cee 100644
--- a/Source/core/html/HTMLMarqueeElement.cpp
+++ b/Source/core/html/HTMLMarqueeElement.cpp
@@ -26,7 +26,6 @@
#include "CSSPropertyNames.h"
#include "CSSValueKeywords.h"
#include "HTMLNames.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/rendering/RenderMarquee.h"
@@ -131,7 +130,7 @@ int HTMLMarqueeElement::scrollAmount() const
void HTMLMarqueeElement::setScrollAmount(int scrollAmount, ExceptionState& exceptionState)
{
if (scrollAmount < 0)
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToSet("scrollAmount", "HTMLMarqueeElement", "The provided value (" + String::number(scrollAmount) + ") is negative."));
+ exceptionState.throwDOMException(IndexSizeError, "The provided value (" + String::number(scrollAmount) + ") is negative.");
else
setIntegralAttribute(scrollamountAttr, scrollAmount);
}
@@ -146,7 +145,7 @@ int HTMLMarqueeElement::scrollDelay() const
void HTMLMarqueeElement::setScrollDelay(int scrollDelay, ExceptionState& exceptionState)
{
if (scrollDelay < 0)
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToSet("scrollDelay", "HTMLMarqueeElement", "The provided value (" + String::number(scrollDelay) + ") is negative."));
+ exceptionState.throwDOMException(IndexSizeError, "The provided value (" + String::number(scrollDelay) + ") is negative.");
else
setIntegralAttribute(scrolldelayAttr, scrollDelay);
}
@@ -161,7 +160,7 @@ int HTMLMarqueeElement::loop() const
void HTMLMarqueeElement::setLoop(int loop, ExceptionState& exceptionState)
{
if (loop <= 0 && loop != -1)
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToSet("loop", "HTMLMarqueeElement", "The provided value (" + String::number(loop) + ") is neither positive nor -1."));
+ exceptionState.throwDOMException(IndexSizeError, "The provided value (" + String::number(loop) + ") is neither positive nor -1.");
else
setIntegralAttribute(loopAttr, loop);
}
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLMeterElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698