Bug 206744 - [LFC][Painting] Add Display::Run cleanup to TextPainter::clearGlyphDisplayLists
Summary: [LFC][Painting] Add Display::Run cleanup to TextPainter::clearGlyphDisplayLists
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-01-24 07:21 PST by zalan
Modified: 2020-01-24 08:42 PST (History)
12 users (show)

See Also:


Attachments
Patch (1.57 KB, patch)
2020-01-24 07:28 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (1.61 KB, patch)
2020-01-24 07:34 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (1.86 KB, patch)
2020-01-24 07:39 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2020-01-24 07:21:16 PST
ssia
Comment 1 Radar WebKit Bug Importer 2020-01-24 07:21:35 PST
<rdar://problem/58867112>
Comment 2 zalan 2020-01-24 07:28:27 PST
Created attachment 388686 [details]
Patch
Comment 3 zalan 2020-01-24 07:32:43 PST
ifdef all the things
Comment 4 zalan 2020-01-24 07:34:37 PST
Created attachment 388687 [details]
Patch
Comment 5 Antti Koivisto 2020-01-24 07:35:53 PST
Comment on attachment 388687 [details]
Patch

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

> Source/WebCore/rendering/TextPainter.cpp:219
> +#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
> +    GlyphDisplayListCache<Display::Run>::singleton().clear();
> +#endif

Could have runtime check too to avoid unnecessary construction of the singleton.
Comment 6 zalan 2020-01-24 07:39:43 PST
Created attachment 388688 [details]
Patch
Comment 7 WebKit Commit Bot 2020-01-24 08:42:32 PST
Comment on attachment 388688 [details]
Patch

Clearing flags on attachment: 388688

Committed r255074: <https://trac.webkit.org/changeset/255074>
Comment 8 WebKit Commit Bot 2020-01-24 08:42:34 PST
All reviewed patches have been landed.  Closing bug.