Bug 211193

Summary: [clang 11] fix build errors due to -WWc++11-narrowing
Product: WebKit Reporter: Charlie Turner <cturner>
Component: WebKitGTKAssignee: Charlie Turner <cturner>
Status: RESOLVED FIXED    
Severity: Normal CC: aperez, bugs-noreply, calvaris, cdumez, darin, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jer.noble, philipj, sergio
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Charlie Turner 2020-04-29 10:29:31 PDT
[clang 11] fix build errors due to -WWc++11-narrowing
Comment 1 Charlie Turner 2020-04-29 10:36:56 PDT
Created attachment 397978 [details]
Patch
Comment 2 EWS 2020-04-30 08:12:40 PDT
Committed r260951: <https://trac.webkit.org/changeset/260951>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 397978 [details].
Comment 3 Darin Adler 2020-04-30 10:08:21 PDT
Comment on attachment 397978 [details]
Patch

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

> Source/WebCore/style/StyleResolver.cpp:106
> -        m_mediaQueryEvaluator = MediaQueryEvaluator { "all" };
> +        m_mediaQueryEvaluator = MediaQueryEvaluator { };

This is a great change. But note that it changes behavior in a big way. The old code was passing true for mediaFeatureResult, by accident. The new code correctly passes false. We need to find a way to get this code path tested.