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

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

Issue 2490233002: Use unsigned longs in HTMLImageElement idl (Closed)
Patch Set: Fix compile error 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
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..9b95061f5ec838f5b0305bc09dc41fd4cede2f25 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;
+ 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;

Powered by Google App Engine
This is Rietveld 408576698