Bug 204098

Summary: Skip matched declarations cache only for length resolution affecting font properties
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: allan.jensen, commit-queue, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, macpherson, menard, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description Antti Koivisto 2019-11-11 17:22:16 PST
Instead of skipping on any sort of font change.
Comment 1 Antti Koivisto 2019-11-11 17:26:31 PST
Created attachment 383325 [details]
patch
Comment 2 WebKit Commit Bot 2019-11-12 11:32:34 PST
Comment on attachment 383325 [details]
patch

Clearing flags on attachment: 383325

Committed r252370: <https://trac.webkit.org/changeset/252370>
Comment 3 WebKit Commit Bot 2019-11-12 11:32:36 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2019-11-12 11:34:21 PST
<rdar://problem/57124173>
Comment 5 Simon Fraser (smfr) 2019-11-12 23:10:51 PST
Comment on attachment 383325 [details]
patch

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

> Source/WebCore/css/CSSPrimitiveValue.cpp:708
> +bool CSSPrimitiveValue::equalForLengthResolution(const RenderStyle& styleA, const RenderStyle& styleB)

Why is this a function on CSSPrimitiveValue? Seems like it could be on RenderStyle.
Comment 6 Antti Koivisto 2019-11-13 10:54:07 PST
> Why is this a function on CSSPrimitiveValue? Seems like it could be on
> RenderStyle.

I put it next to the length resolution function (CSSPrimitiveValue::computeNonCalcLengthDouble) since these two must stay in sync.

They should be moved somewhere else together.