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

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

Issue 2490233002: Use unsigned longs in HTMLImageElement idl (Closed)
Patch Set: V3 Created 4 years, 1 month 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 | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLImageElement.idl
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.idl b/third_party/WebKit/Source/core/html/HTMLImageElement.idl
index ddad655d4157f1705009989575aa6274a4d1fb47..49bff7ef33750a60261a10967b4df08a7763f534 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.idl
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.idl
@@ -20,11 +20,10 @@
// https://html.spec.whatwg.org/#the-img-element
-// TODO(foolip): All long types in this interfaces should be unsigned long.
[
ActiveScriptWrappable,
ConstructorCallWith=Document,
- NamedConstructor=Image(optional long width, optional long height),
+ NamedConstructor=Image(optional unsigned long width, optional unsigned long height),
] interface HTMLImageElement : HTMLElement {
[CEReactions, Reflect] attribute DOMString alt;
[CEReactions, Reflect, URL] attribute DOMString src;
@@ -33,10 +32,10 @@
[CEReactions, Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin;
[CEReactions, Reflect] attribute DOMString useMap;
[CEReactions, Reflect] attribute boolean isMap;
- [CEReactions] attribute long width;
- [CEReactions] attribute long height;
- readonly attribute long naturalWidth;
- readonly attribute long naturalHeight;
+ [CEReactions] attribute unsigned long width;
+ [CEReactions] attribute unsigned long height;
+ readonly attribute unsigned long naturalWidth;
foolip 2016/11/10 16:53:33 It looks these and x/y aren't actually changed in
rwlbuis 2016/11/10 17:07:45 For naturalWidth/Height it should not matter, sinc
foolip 2016/11/11 09:47:22 I mean that HTMLImageElement::naturalWidth() shoul
+ readonly attribute unsigned long naturalHeight;
readonly attribute boolean complete;
readonly attribute DOMString currentSrc;
[CEReactions, Reflect, ReflectOnly=("","no-referrer","origin","no-referrer-when-downgrade","origin-when-cross-origin","unsafe-url"), ReflectMissing="", ReflectInvalid=""] attribute DOMString referrerPolicy;
@@ -54,6 +53,6 @@
// 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;
+ [MeasureAs=HTMLImageElementX] readonly attribute unsigned long x;
+ [MeasureAs=HTMLImageElementY] readonly attribute unsigned long y;
};
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698