Bug 237963

Summary: Pass style builder context to CSSToLengthConversionData
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, eric.carlson, esprehn+autocc, ews-watchlist, glenn, graouts, gyuyoung.kim, jer.noble, kondapallykalyan, macpherson, menard, mifenton, pdr, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
none
Patch none

Description Antti Koivisto 2022-03-16 08:59:05 PDT
Preparation for resolving container units.
Comment 1 Antti Koivisto 2022-03-16 09:30:08 PDT
Created attachment 454846 [details]
Patch
Comment 2 Antti Koivisto 2022-03-16 10:36:16 PDT
Created attachment 454857 [details]
Patch
Comment 3 Antti Koivisto 2022-03-16 10:45:00 PDT
Created attachment 454862 [details]
Patch
Comment 4 Antti Koivisto 2022-03-16 11:56:50 PDT
Created attachment 454874 [details]
Patch
Comment 5 Antti Koivisto 2022-03-16 12:00:31 PDT
Created attachment 454876 [details]
Patch
Comment 6 Antti Koivisto 2022-03-16 13:13:42 PDT
Created attachment 454886 [details]
Patch
Comment 7 Antoine Quint 2022-03-17 01:44:38 PDT
Comment on attachment 454886 [details]
Patch

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

> Source/WebCore/css/CSSToLengthConversionData.h:52
> +    CSSToLengthConversionData(const RenderStyle&, const RenderStyle* rootStyle, const RenderStyle* parentStyle, const RenderView*);

'zoom' v. `zoom`, who should win?

> Source/WebCore/css/MediaQueryEvaluator.cpp:949
> +    return function(expression.value(), { *m_style, &defaultStyle, nullptr, document.renderView() }, *frame, NoPrefix);

Should we ASSERT(m_style) here?
Comment 8 Antti Koivisto 2022-03-17 01:53:11 PDT
> Should we ASSERT(m_style) here?

Nah, there is a null test pretty close above.
Comment 9 EWS 2022-03-17 02:42:16 PDT
Committed r291398 (248528@main): <https://commits.webkit.org/248528@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454886 [details].
Comment 10 Radar WebKit Bug Importer 2022-03-17 02:43:18 PDT
<rdar://problem/90419727>