diff options
Diffstat (limited to 'Source/WebCore/html/HTMLImageElement.idl')
-rw-r--r-- | Source/WebCore/html/HTMLImageElement.idl | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/Source/WebCore/html/HTMLImageElement.idl b/Source/WebCore/html/HTMLImageElement.idl index 8c551f87b..b681dd22f 100644 --- a/Source/WebCore/html/HTMLImageElement.idl +++ b/Source/WebCore/html/HTMLImageElement.idl @@ -19,35 +19,33 @@ */ [ + ExportMacro=WEBCORE_EXPORT, JSGenerateToNativeObject, + NamedConstructor=Image(optional unsigned long width, optional unsigned long height) ] interface HTMLImageElement : HTMLElement { [Reflect] attribute DOMString name; [Reflect] attribute DOMString align; [Reflect] attribute DOMString alt; - [Reflect] attribute DOMString border; - [Reflect] attribute DOMString crossOrigin; - attribute long height; - [Reflect] attribute long hspace; + [Reflect, TreatNullAs=EmptyString] attribute DOMString border; + attribute DOMString? crossOrigin; + attribute unsigned long height; + [Reflect] attribute unsigned long hspace; [Reflect] attribute boolean isMap; - [Reflect, URL] attribute DOMString longDesc; - [Reflect, URL] attribute DOMString src; - [Reflect] attribute DOMString srcset; + [Reflect, URL] attribute USVString longDesc; + [Reflect, URL] attribute USVString src; + [Reflect] attribute USVString srcset; + [Reflect] attribute DOMString sizes; + readonly attribute USVString currentSrc; [Reflect] attribute DOMString useMap; - [Reflect] attribute long vspace; - attribute long width; - + [Reflect] attribute unsigned long vspace; + attribute unsigned long width; + // Extensions readonly attribute boolean complete; - [Reflect,URL] attribute DOMString lowsrc; + [Reflect,URL] attribute USVString lowsrc; readonly attribute long naturalHeight; readonly attribute long naturalWidth; readonly attribute long x; readonly attribute long y; - -#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C - // Objective-C extension: - readonly attribute DOMString altDisplayString; - readonly attribute URL absoluteImageURL; -#endif }; |