From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/HTMLImageElement.idl | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'Source/WebCore/html/HTMLImageElement.idl') 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 }; -- cgit v1.2.1