Index: core/html/HTMLImageElement.idl |
diff --git a/core/html/HTMLImageElement.idl b/core/html/HTMLImageElement.idl |
index cde8092146bd3d4fd29ec5d562d55d36105c97ca..976e52fff834f5187064d00c272e869f855a611c 100644 |
--- a/core/html/HTMLImageElement.idl |
+++ b/core/html/HTMLImageElement.idl |
@@ -18,36 +18,40 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-// 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. |
+// https://html.spec.whatwg.org/#the-img-element |
+ |
+// TODO(philipj): All long types in this interfaces should be unsigned long. |
[ |
- NamedConstructor=Image([Default=Undefined] optional long width, [Default=Undefined] optional long height), |
+ NamedConstructor=Image(optional long width, optional long height), |
ConstructorCallWith=Document |
] interface HTMLImageElement : HTMLElement { |
- [Reflect] attribute DOMString align; |
[Reflect] attribute DOMString alt; |
- [Reflect, TreatNullAs=EmptyString] attribute DOMString border; |
- readonly attribute boolean complete; |
- [Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin; |
- attribute long height; |
- [Reflect] attribute long hspace; |
- [Reflect] attribute boolean isMap; |
- [Reflect, URL] attribute DOMString longDesc; |
- [Reflect, URL] attribute DOMString lowsrc; |
- [Reflect] attribute DOMString name; |
- readonly attribute long naturalHeight; |
- readonly attribute long naturalWidth; |
[Reflect, URL] attribute DOMString src; |
[Reflect] attribute DOMString srcset; |
- [Reflect, RuntimeEnabled=PictureSizes] attribute DOMString sizes; |
- [RuntimeEnabled=PictureSizes] readonly attribute DOMString currentSrc; |
+ [Reflect] attribute DOMString sizes; |
+ [Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin; |
[Reflect] attribute DOMString useMap; |
- [Reflect] attribute long vspace; |
+ [Reflect] attribute boolean isMap; |
attribute long width; |
+ attribute long height; |
+ readonly attribute long naturalWidth; |
+ readonly attribute long naturalHeight; |
+ readonly attribute boolean complete; |
+ readonly attribute DOMString currentSrc; |
- // Extensions |
+ // obsolete members |
+ // https://html.spec.whatwg.org/#HTMLImageElement-partial |
+ [Reflect] attribute DOMString name; |
+ [Reflect, URL] attribute DOMString lowsrc; |
+ [Reflect] attribute DOMString align; |
+ [Reflect] attribute long hspace; |
+ [Reflect] attribute long vspace; |
+ [Reflect, URL] attribute DOMString longDesc; |
+ |
+ [Reflect, TreatNullAs=EmptyString] attribute DOMString border; |
+ |
+ // CSSOM View Module |
+ // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlimageelement-interface |
[MeasureAs=HTMLImageElementX] readonly attribute long x; |
[MeasureAs=HTMLImageElementY] readonly attribute long y; |
- |
- [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity; |
}; |