Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Sync 'naturalWidth' and 'naturalHeight' with Spec and change from 'in…
…t' 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
- Loading branch information
1 parent
264836a
commit e7d267d
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters