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

Unified Diff: core/html/HTMLImageElement.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/html/HTMLIFrameElement.idl ('k') | core/html/HTMLInputElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « core/html/HTMLIFrameElement.idl ('k') | core/html/HTMLInputElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698