Commit 071fc25c authored by rkc@chromium.org's avatar rkc@chromium.org

Fix font on offline load page.

For some reason, the offline load page is not picking up the default system font but instead defaulting to Times New Roman. This CL fixes it by explicitly setting the font style for the page body.

R=dbeam@chromium.org
BUG=223934
TEST=Go offline and verify that the font used is the ChromeOS system font.

Review URL: https://codereview.chromium.org/14311003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194685 0039d316-1c4b-4281-b951-d872f2087c98
parent 6362c17f
......@@ -99,11 +99,9 @@ std::string OfflineLoadPage::GetHTMLContents() {
// Activation
strings.SetBoolean("show_activation", ShowActivationMessage());
bool rtl = base::i18n::IsRTL();
strings.SetString("textdirection", rtl ? "rtl" : "ltr");
webui::SetFontAndTextDirection(&strings);
string16 failed_url(ASCIIToUTF16(url_.spec()));
if (rtl)
if (base::i18n::IsRTL())
base::i18n::WrapStringWithLTRFormatting(&failed_url);
strings.SetString("url", failed_url);
......
......@@ -125,7 +125,8 @@ document.addEventListener('DOMContentLoaded', function() {
});
</script>
<body oncontextmenu="return false;">
<body oncontextmenu="return false;"
i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id="mainview">
<div id="left">
<div class="upper">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment