summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/html/html_marquee_element.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/html_marquee_element.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/html/html_marquee_element.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/html_marquee_element.cc b/chromium/third_party/blink/renderer/core/html/html_marquee_element.cc
index 6b6dbd26853..85588ab0613 100644
--- a/chromium/third_party/blink/renderer/core/html/html_marquee_element.cc
+++ b/chromium/third_party/blink/renderer/core/html/html_marquee_element.cc
@@ -25,7 +25,6 @@
#include <cstdlib>
#include "base/macros.h"
-#include "third_party/blink/renderer/bindings/core/v8/exception_state.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_html_marquee_element.h"
#include "third_party/blink/renderer/core/animation/document_timeline.h"
#include "third_party/blink/renderer/core/animation/keyframe_effect.h"
@@ -47,6 +46,7 @@
#include "third_party/blink/renderer/core/html/html_style_element.h"
#include "third_party/blink/renderer/core/html/parser/html_parser_idioms.h"
#include "third_party/blink/renderer/core/html_names.h"
+#include "third_party/blink/renderer/platform/bindings/exception_state.h"
namespace blink {
@@ -186,9 +186,10 @@ int HTMLMarqueeElement::loop() const {
void HTMLMarqueeElement::setLoop(int value, ExceptionState& exception_state) {
if (value <= 0 && value != -1) {
- exception_state.ThrowDOMException(
- kIndexSizeError, "The provided value (" + String::Number(value) +
- ") is neither positive nor -1.");
+ exception_state.ThrowDOMException(DOMExceptionCode::kIndexSizeError,
+ "The provided value (" +
+ String::Number(value) +
+ ") is neither positive nor -1.");
return;
}
SetIntegralAttribute(HTMLNames::loopAttr, value);