Bug 197829

Summary: Web Inspector: Formatter: pretty-print CSS using a Worker
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 198806, 198807    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews213 for win-future
none
Patch none

Description Devin Rousso 2019-05-12 22:46:44 PDT
For extremely large CSS files, it can take a very long time for us to pretty-print it using CodeMirror.  Rather than pretty-print using the main thread (e.g. CodeMirror), we should do the same as JavaScript and pretty-print off the main thread (e.g. a Worker).
Comment 1 Devin Rousso 2019-05-12 22:49:59 PDT
<rdar://problem/36891532>
Comment 2 Devin Rousso 2019-05-12 22:53:03 PDT
Created attachment 369695 [details]
Patch

This is probably missing some edge cases, and should have some tests, but it's a start :)
Comment 3 EWS Watchlist 2019-05-12 22:55:14 PDT Comment hidden (obsolete)
Comment 4 EWS Watchlist 2019-05-13 08:57:53 PDT Comment hidden (obsolete)
Comment 5 EWS Watchlist 2019-05-13 08:57:55 PDT Comment hidden (obsolete)
Comment 6 Devin Rousso 2019-05-15 03:56:58 PDT
Created attachment 369944 [details]
Patch
Comment 7 EWS Watchlist 2019-05-15 03:58:53 PDT Comment hidden (obsolete)
Comment 8 WebKit Commit Bot 2019-06-06 16:35:18 PDT
Comment on attachment 369944 [details]
Patch

Clearing flags on attachment: 369944

Committed r246178: <https://trac.webkit.org/changeset/246178>
Comment 9 WebKit Commit Bot 2019-06-06 16:35:19 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Joseph Pecoraro 2019-06-06 16:43:43 PDT
Comment on attachment 369944 [details]
Patch

Nice!