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

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

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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.h b/third_party/WebKit/Source/core/html/HTMLImageElement.h
index b093a00f6709e8c6b2111dab75fc985f8571467c..1bc5c0cd1c677c4b104b4df99b2b9fc23ca74200 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
@@ -56,19 +56,19 @@ class CORE_EXPORT HTMLImageElement final : public HTMLElement,
HTMLFormElement*,
bool createdByParser);
static HTMLImageElement* createForJSConstructor(Document&);
- static HTMLImageElement* createForJSConstructor(Document&, int width);
+ static HTMLImageElement* createForJSConstructor(Document&, unsigned width);
static HTMLImageElement* createForJSConstructor(Document&,
- int width,
- int height);
+ unsigned width,
+ unsigned height);
~HTMLImageElement() override;
DECLARE_VIRTUAL_TRACE();
- int width();
- int height();
+ unsigned width();
+ unsigned height();
- int naturalWidth() const;
- int naturalHeight() const;
+ unsigned naturalWidth() const;
+ unsigned naturalHeight() const;
const String& currentSrc() const;
bool isServerMap() const;
@@ -80,12 +80,12 @@ class CORE_EXPORT HTMLImageElement final : public HTMLElement,
void setLoadingImageDocument() { imageLoader().setLoadingImageDocument(); }
- void setHeight(int);
+ void setHeight(unsigned);
KURL src() const;
void setSrc(const String&);
- void setWidth(int);
+ void setWidth(unsigned);
int x() const;
int y() const;

Powered by Google App Engine
This is Rietveld 408576698