| Index: Source/core/html/HTMLOptionElement.cpp
|
| diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
|
| index 79239f43d70034107d2d61f13d3d2e29703a3344..bced74658c356a1f106945c487921e82f93255fd 100644
|
| --- a/Source/core/html/HTMLOptionElement.cpp
|
| +++ b/Source/core/html/HTMLOptionElement.cpp
|
| @@ -59,9 +59,10 @@ PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::create(Document& do
|
| return adoptRefWillBeNoop(new HTMLOptionElement(document));
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstructor(Document& document, const String& data, const AtomicString& value,
|
| +PassRefPtrWillBeRawPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstructor(ExecutionContext* executionContext, const String& data, const AtomicString& value,
|
| bool defaultSelected, bool selected, ExceptionState& exceptionState)
|
| {
|
| + Document& document = *toDocument(executionContext);
|
| RefPtrWillBeRawPtr<HTMLOptionElement> element = adoptRefWillBeNoop(new HTMLOptionElement(document));
|
| element->appendChild(Text::create(document, data.isNull() ? "" : data), exceptionState);
|
| if (exceptionState.hadException())
|
|
|