Index: Source/core/html/HTMLImageElement.idl |
diff --git a/Source/core/html/HTMLImageElement.idl b/Source/core/html/HTMLImageElement.idl |
index df267ac2a0b0619dc0c029a55737fae7330b2566..0413317c26399d1f08e309e0908f13d1ba7d756a 100644 |
--- a/Source/core/html/HTMLImageElement.idl |
+++ b/Source/core/html/HTMLImageElement.idl |
@@ -21,7 +21,8 @@ |
// FIXME: NamedConstructor does not support optional without Default. Fortunately using Undefined makes |
// us use 0 which happens to be the default width and height anyway. |
[ |
- NamedConstructor=Image([Default=Undefined] optional long width, [Default=Undefined] optional long height) |
+ NamedConstructor=Image([Default=Undefined] optional long width, [Default=Undefined] optional long height), |
+ ConstructorCallWith=Document |
] interface HTMLImageElement : HTMLElement { |
[Reflect] attribute DOMString align; |
[Reflect] attribute DOMString alt; |