diff options
author | ananta <ananta@chromium.org> | 2015-01-06 18:50:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-07 02:51:02 +0000 |
commit | 99823930aeba1fae5a31ed242286248de66dc43b (patch) | |
tree | 40422d1a304f4892b814c0cc2ad70d9a00465078 /content/renderer/render_view_win.cc | |
parent | 63e5cccfc26954db2c07f5b753ebbbf0849cd6db (diff) | |
download | chromium_src-99823930aeba1fae5a31ed242286248de66dc43b.zip chromium_src-99823930aeba1fae5a31ed242286248de66dc43b.tar.gz chromium_src-99823930aeba1fae5a31ed242286248de66dc43b.tar.bz2 |
Fix a crash which occurs in the Win32K lockdown mode in the renderer process.
The crash occurs because of code in WebKit attempting to get the system font metrics which fails in the Win32K lockdown mode.
Proposed fix is to pass the font name and height for the system fonts to the renderer process and cache them
there. We only need these two values for now.
This is the browser side of the change. The renderer side change to cache this information for WebKit will come along in a subsequent patch.
BUG=442158
Review URL: https://codereview.chromium.org/840443002
Cr-Commit-Position: refs/heads/master@{#310222}
Diffstat (limited to 'content/renderer/render_view_win.cc')
-rw-r--r-- | content/renderer/render_view_win.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/content/renderer/render_view_win.cc b/content/renderer/render_view_win.cc new file mode 100644 index 0000000..76350d0 --- /dev/null +++ b/content/renderer/render_view_win.cc @@ -0,0 +1,19 @@ +// Copyright (c) 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "content/public/common/renderer_preferences.h" +#include "content/renderer/render_view_impl.h" +#include "third_party/WebKit/public/web/win/WebFontRendering.h" + +using blink::WebFontRendering; + +namespace content { + +void RenderViewImpl::UpdateFontRenderingFromRendererPrefs() { + // TODO(ananta) + // Add code to update the Webkit font cache with the system font metrics + // information. +} + +} // namespace content |