Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: Source/core/html/HTMLImageElement.idl

Issue 990993004: Sync HTML element interfaces H-K with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLIFrameElement.idl ('k') | Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImageElement.idl
diff --git a/Source/core/html/HTMLImageElement.idl b/Source/core/html/HTMLImageElement.idl
index 9d25fe54d29ea88ea972ed1008a588e9ddcb0d55..0dc7d73998ef92a51287aa277d20881247a7cb3a 100644
--- a/Source/core/html/HTMLImageElement.idl
+++ b/Source/core/html/HTMLImageElement.idl
@@ -18,36 +18,45 @@
* 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/#htmlimageelement
+
+// FIXME: Most long types in this interfaces should be unsigned long.
[
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] attribute DOMString sizes;
- readonly attribute DOMString currentSrc;
+ [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;
+
+ // 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;
- // Extensions
+ // 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;
+ // Subresource Integrity
+ // https://w3c.github.io/webappsec/specs/subresourceintegrity/
+ // FIXME: The spec does not extend HTMLImageElement.
[Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity;
};
« no previous file with comments | « Source/core/html/HTMLIFrameElement.idl ('k') | Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698