| Index: Source/core/html/HTMLImageElement.cpp
|
| diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
|
| index 85f44367146813c9eebf1cebf85c10d7a6542ab0..ba68a96133184b24de6db93478f5b6f0944352ea 100644
|
| --- a/Source/core/html/HTMLImageElement.cpp
|
| +++ b/Source/core/html/HTMLImageElement.cpp
|
| @@ -93,9 +93,9 @@ void HTMLImageElement::trace(Visitor* visitor)
|
| HTMLElement::trace(visitor);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<HTMLImageElement> HTMLImageElement::createForJSConstructor(Document& document, int width, int height)
|
| +PassRefPtrWillBeRawPtr<HTMLImageElement> HTMLImageElement::createForJSConstructor(ExecutionContext* executionContext, int width, int height)
|
| {
|
| - RefPtrWillBeRawPtr<HTMLImageElement> image = adoptRefWillBeNoop(new HTMLImageElement(document));
|
| + RefPtrWillBeRawPtr<HTMLImageElement> image = adoptRefWillBeNoop(new HTMLImageElement(*toDocument(executionContext)));
|
| if (width)
|
| image->setWidth(width);
|
| if (height)
|
|
|