summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/policy.html
diff options
context:
space:
mode:
authordbeam <dbeam@chromium.org>2014-11-25 19:59:06 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-26 03:59:22 +0000
commit41c9c724399008d33cb785ff2b4357bd99478b2a (patch)
tree9809735bffd3b8515aad6e537735a8606000dc13 /chrome/browser/resources/policy.html
parentc3a4e6cdd3efb04adb7ebfaf7bc965f04eed76bc (diff)
downloadchromium_src-41c9c724399008d33cb785ff2b4357bd99478b2a.zip
chromium_src-41c9c724399008d33cb785ff2b4357bd99478b2a.tar.gz
chromium_src-41c9c724399008d33cb785ff2b4357bd99478b2a.tar.bz2
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 Review URL: https://codereview.chromium.org/747923004 Cr-Commit-Position: refs/heads/master@{#305775}
Diffstat (limited to 'chrome/browser/resources/policy.html')
-rw-r--r--chrome/browser/resources/policy.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/resources/policy.html b/chrome/browser/resources/policy.html
index 0aff4e6..eb0e505 100644
--- a/chrome/browser/resources/policy.html
+++ b/chrome/browser/resources/policy.html
@@ -18,8 +18,7 @@
<script src="chrome://policy/uber_utils.js"></script>
</head>
-<body class="uber-frame"
- i18n-values=".style.fontFamily:fontfamily; .style.fontSize:fontsize">
+<body class="uber-frame">
<div id="filter-overlay" class="page">
<header>
<input id="filter" class="search-field-container" type="search"