Bug 231644

Summary: [css-values-4] viewport units should be floats
Product: WebKit Reporter: Devin Rousso <hi>
Component: CSSAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, emilio, esprehn+autocc, ews-watchlist, glenn, hi, kondapallykalyan, pdr, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 219287    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch none

Description Devin Rousso 2021-10-12 16:38:20 PDT
views can be fractional pixels wide
Comment 1 Radar WebKit Bug Importer 2021-10-12 16:47:13 PDT
<rdar://problem/84172685>
Comment 2 Devin Rousso 2021-10-21 14:48:14 PDT
Created attachment 442065 [details]
Patch
Comment 3 Devin Rousso 2021-10-21 14:50:45 PDT
Comment on attachment 442065 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=442065&action=review

> Source/WebCore/page/FrameView.cpp:-5640
> -    // Use the large size if no override is given since it's considered the default size.
> -    // if (m_largeViewportSizeOverride) {

I accidentally left this in when I was working on fixing EWS test failures for <https://webkit.org/b/219287> 😅
Comment 4 Tim Horton 2021-11-04 13:55:09 PDT
Comment on attachment 442065 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=442065&action=review

> Source/WebCore/ChangeLog:9
> +        Views can be fractional pixels wide. We should not round, especially since viewport units

>Views can be fractional pixels wide.

Technically true but many other parts of WebKit do not correctly support even fractional *points* let alone fractional pixels. (Though I think you meant points anyway?).

Still, no harm in this change.
Comment 5 Devin Rousso 2021-11-04 20:40:22 PDT
Created attachment 443373 [details]
Patch
Comment 6 EWS 2021-11-05 10:43:40 PDT
Committed r285345 (243906@main): <https://commits.webkit.org/243906@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 443373 [details].