Bug 253364
Summary: | Sync 'naturalWidth' and 'naturalHeight' with Spec and change from 'int' to 'unsigned' | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | rniwa, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ahmad Saleem
Hi Team,
Looking into HTMLImageElement.cpp, I noted that we have 'naturalWidth' and 'naturalHeight' as 'int' rather than 'unsigned' while spec says that it should be 'unsigned'.
Web-Spec: https://html.spec.whatwg.org/#the-img-element
WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLImageElement.cpp#569 & https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLImageElement.cpp#577 & https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLImageElement.idl#39 etc.
Appreciate if someone can confirm whether this is still pending or we have it as intentional?
Thanks!
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/106580337>
EWS
Committed 266302@main (e7d267d296c7): <https://commits.webkit.org/266302@main>
Reviewed commits have been landed. Closing PR #16075 and removing active labels.