|
|
webui: minimize webui flicker.
Recently a CL landed in blink to allow rendering to start
before synchronous script execution starts. This affects
WebUI as it does a lot of processing in JavaScript to populate
styles and text in our pages.
This CL moves some reflow-causing styles to a new stylesheet
named text_defaults.css which is dynamically processsed
by the chrome://resources/ data handler to have the right
fonts and text direction earlier in the page load (so pages
don't flicker as much).
chrome_shared.css automatically includes this new file, but to
include it separately, do something like this in your page:
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
I've also gone through and removed all the:
<body i18n-content="fontFamily:fontfamily;fontSize:fontSize">
cruft for pages that already include chrome_shared.css
(as this is now redundant).
R=estade@chromium.org,davidben@chromium.org,kalman@chromium.org
BUG= 434974
Committed: https://crrev.com/41c9c724399008d33cb785ff2b4357bd99478b2a
Cr-Commit-Position: refs/heads/master@{#305775}
Total comments: 5
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+114 lines, -53 lines) |
Patch |
 |
M |
chrome/browser/resources/certificate_viewer.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/chromeos/bluetooth_pair_device.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/chromeos/certificate_manager_dialog.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/chromeos/proxy_settings.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/chromeos/set_time.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/downloads/downloads.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/extensions/extension_info.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/extensions/extensions.html
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/help/help.html
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/history/history.html
|
View
|
1
2
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/history/history_mobile.css
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/local_discovery/local_discovery.html
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/options.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/policy.html
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/print_preview/print_preview.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/set_as_default_browser.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/uber/uber_frame.html
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/webui/shared_resources_data_source.h
|
View
|
1
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/webui/shared_resources_data_source.cc
|
View
|
1
2
3
4
|
3 chunks |
+31 lines, -5 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/renderer_startup_helper.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/base/webui/web_ui_util.h
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/base/webui/web_ui_util.cc
|
View
|
1
|
2 chunks |
+25 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ui/webui/resources/css/chrome_shared.css
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
ui/webui/resources/css/text_defaults.css
|
View
|
1
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/webui/resources/webui_resources.grd
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 22 (6 generated)
|