| Index: Source/web/WebDocument.cpp
|
| diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp
|
| index e571667f99f24768d16fef830a005c324e4dd300..8d7479d624350628d54262bda4bf7579a79b6fb4 100644
|
| --- a/Source/web/WebDocument.cpp
|
| +++ b/Source/web/WebDocument.cpp
|
| @@ -244,9 +244,9 @@ WebElement WebDocument::fullScreenElement() const
|
|
|
| WebDOMEvent WebDocument::createEvent(const WebString& eventType)
|
| {
|
| - TrackExceptionState es;
|
| - WebDOMEvent event(unwrap<Document>()->createEvent(eventType, es));
|
| - if (es.hadException())
|
| + TrackExceptionState exceptionState;
|
| + WebDOMEvent event(unwrap<Document>()->createEvent(eventType, exceptionState));
|
| + if (exceptionState.hadException())
|
| return WebDOMEvent();
|
| return event;
|
| }
|
| @@ -258,9 +258,9 @@ WebReferrerPolicy WebDocument::referrerPolicy() const
|
|
|
| WebElement WebDocument::createElement(const WebString& tagName)
|
| {
|
| - TrackExceptionState es;
|
| - WebElement element(unwrap<Document>()->createElement(tagName, es));
|
| - if (es.hadException())
|
| + TrackExceptionState exceptionState;
|
| + WebElement element(unwrap<Document>()->createElement(tagName, exceptionState));
|
| + if (exceptionState.hadException())
|
| return WebElement();
|
| return element;
|
| }
|
| @@ -297,10 +297,10 @@ v8::Handle<v8::Value> WebDocument::registerEmbedderCustomElement(const WebString
|
| {
|
| Document* document = unwrap<Document>();
|
| Dictionary dictionary(options, v8::Isolate::GetCurrent());
|
| - TrackExceptionState es;
|
| - ScriptValue constructor = document->registerElement(ScriptState::current(), name, dictionary, es, CustomElement::EmbedderNames);
|
| - ec = es.code();
|
| - if (es.hadException())
|
| + TrackExceptionState exceptionState;
|
| + ScriptValue constructor = document->registerElement(ScriptState::current(), name, dictionary, exceptionState, CustomElement::EmbedderNames);
|
| + ec = exceptionState.code();
|
| + if (exceptionState.hadException())
|
| return v8::Handle<v8::Value>();
|
| return constructor.v8Value();
|
| }
|
|
|