[webkit-changes] [WebKit/WebKit] e7d267: Sync 'naturalWidth' and 'naturalHeight' with Spec ...
Ahmad Saleem
noreply at github.com
Tue Jul 25 14:12:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e7d267d296c7cf9ae1250e2b0ba55b541a5965f5
https://github.com/WebKit/WebKit/commit/e7d267d296c7cf9ae1250e2b0ba55b541a5965f5
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2023-07-25 (Tue, 25 Jul 2023)
Changed paths:
M Source/WebCore/html/HTMLImageElement.cpp
M Source/WebCore/html/HTMLImageElement.h
M Source/WebCore/html/HTMLImageElement.idl
Log Message:
-----------
Sync 'naturalWidth' and 'naturalHeight' with Spec and change from 'int' to 'unsigned'
https://bugs.webkit.org/show_bug.cgi?id=253364
rdar://problem/106580337
Reviewed by Ryosuke Niwa.
This patch aligns WebKit with Web-Spec [1] by changing 'naturalWidth'
and 'naturalHeight' from 'int' to 'unsigned'.
[1] https://html.spec.whatwg.org/#the-img-element
* Source/WebCore/html/HTMLImageElement.cpp:
(HTMLImageElement::naturalWidth): Change to 'unsigned' and return to have 'toUnsigned'
(HTMLImageElement::naturalHeight): Ditto
* Source/WebCore/html/HTMLImageElement.h: Update definition to 'unsigned' from 'int' for 'naturalWidth' and 'naturalHeight'
* Source/WebCore/html/HTMLImageElement.idl: Update 'naturalWidth' and 'naturalHeight' to have 'unsigned'
Canonical link: https://commits.webkit.org/266302@main
More information about the webkit-changes
mailing list