Bug 188181 - Don't call RenderTheme::platformColorsDidChange() during printing
Summary: Don't call RenderTheme::platformColorsDidChange() during printing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-07-30 14:55 PDT by Timothy Hatcher
Modified: 2018-07-31 11:23 PDT (History)
8 users (show)

See Also:


Attachments
Patch (2.37 KB, patch)
2018-07-30 15:00 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-sierra (2.31 MB, application/zip)
2018-07-30 16:05 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews107 for mac-sierra-wk2 (2.87 MB, application/zip)
2018-07-30 16:13 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews112 for mac-sierra (3.00 MB, application/zip)
2018-07-30 16:44 PDT, EWS Watchlist
no flags Details
Patch (2.42 KB, patch)
2018-07-30 17:35 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2018-07-30 14:55:54 PDT
We don't need to call RenderTheme::platformColorsDidChange() during printing anymore. RenderTheme caches dark and light mode colors separately. Also platformColorsDidChange() calls Page::updateStyleForAllPagesAfterGlobalChangeInEnvironment() which is very heavy handed and can mess up printing operations.

rdar://problem/42360070
Comment 1 Timothy Hatcher 2018-07-30 15:00:18 PDT Comment hidden (obsolete)
Comment 2 EWS Watchlist 2018-07-30 16:05:31 PDT Comment hidden (obsolete)
Comment 3 EWS Watchlist 2018-07-30 16:05:33 PDT Comment hidden (obsolete)
Comment 4 EWS Watchlist 2018-07-30 16:13:34 PDT Comment hidden (obsolete)
Comment 5 EWS Watchlist 2018-07-30 16:13:36 PDT Comment hidden (obsolete)
Comment 6 EWS Watchlist 2018-07-30 16:44:25 PDT Comment hidden (obsolete)
Comment 7 EWS Watchlist 2018-07-30 16:44:26 PDT Comment hidden (obsolete)
Comment 8 Timothy Hatcher 2018-07-30 17:35:25 PDT
Created attachment 346130 [details]
Patch
Comment 9 WebKit Commit Bot 2018-07-31 11:23:44 PDT
Comment on attachment 346130 [details]
Patch

Clearing flags on attachment: 346130

Committed r234432: <https://trac.webkit.org/changeset/234432>
Comment 10 WebKit Commit Bot 2018-07-31 11:23:46 PDT
All reviewed patches have been landed.  Closing bug.