Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Issue 790733005: Blink side of the change to pass the system font metrics from the browser to the renderer on Windo… (Closed)

Created:
5 years, 11 months ago by ananta
Modified:
5 years, 11 months ago
Reviewers:
pdr., scottmg, dglazkov, eae
CC:
blink-reviews, danakj, blink-reviews-rendering, Rik, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jbroman, Dominik Röttsches, dglazkov+blink, pdr+graphicswatchlist_chromium.org, f(malita), jchaffraix+rendering, Stephen Chennney, krit, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Blink side of the change to pass the system font metrics from the browser to the renderer on Windows This change is needed to support Win32K lockdown mode in the renderer process which prevents it from making user32/gdi32 calls which call into win32k.sys on Windows 8+. Currently the renderer process crashes in the Win32K lockdown mode while attempting to retrieve system font metrics. Changes in this patch are as below:- 1. Updated the WebFontRendering interface with static methods to set the menu font, small caption font and status font metrics. 2. These methods are implemented by the FontCache class on Windows. 3. Changed the RenderThemeChromiumFontProvider class to retrieve the font metrics from the FontCache class before querying the system for the same. BUG=442158 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187943

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -12 lines) Patch
M Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp View 1 2 chunks +28 lines, -12 lines 0 comments Download
M Source/platform/fonts/FontCache.h View 1 2 chunks +17 lines, -0 lines 0 comments Download
M Source/platform/fonts/win/FontCacheSkiaWin.cpp View 1 2 chunks +40 lines, -0 lines 0 comments Download
M Source/web/win/WebFontRendering.cpp View 1 chunk +19 lines, -0 lines 0 comments Download
M public/web/win/WebFontRendering.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
ananta
5 years, 11 months ago (2015-01-06 23:05:34 UTC) #2
scottmg
lgtm https://codereview.chromium.org/790733005/diff/1/Source/platform/fonts/FontCache.h File Source/platform/fonts/FontCache.h (right): https://codereview.chromium.org/790733005/diff/1/Source/platform/fonts/FontCache.h#newcode179 Source/platform/fonts/FontCache.h:179: static String s_menuFontFamilyName; you might need to make ...
5 years, 11 months ago (2015-01-06 23:13:57 UTC) #3
scottmg
https://codereview.chromium.org/790733005/diff/1/Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp File Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp (right): https://codereview.chromium.org/790733005/diff/1/Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp#newcode113 Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp:113: fontFamily = AtomicString(FontCache::smallCaptionFontFamily()); Since they're only used as AtomicString, ...
5 years, 11 months ago (2015-01-06 23:15:23 UTC) #4
Timothy Loh
s/WebKit/Blink/ in the patch title and description? :)
5 years, 11 months ago (2015-01-06 23:27:45 UTC) #5
ananta
https://codereview.chromium.org/790733005/diff/1/Source/platform/fonts/FontCache.h File Source/platform/fonts/FontCache.h (right): https://codereview.chromium.org/790733005/diff/1/Source/platform/fonts/FontCache.h#newcode179 Source/platform/fonts/FontCache.h:179: static String s_menuFontFamilyName; On 2015/01/06 23:13:57, scottmg wrote: > ...
5 years, 11 months ago (2015-01-06 23:30:16 UTC) #6
ananta
On 2015/01/06 23:27:45, Timothy Loh wrote: > s/WebKit/Blink/ in the patch title and description? :) ...
5 years, 11 months ago (2015-01-06 23:31:05 UTC) #7
ananta
+eae
5 years, 11 months ago (2015-01-06 23:40:27 UTC) #9
eae
LGTM
5 years, 11 months ago (2015-01-06 23:44:59 UTC) #10
ananta
+dglazkov for Source owners.
5 years, 11 months ago (2015-01-06 23:47:55 UTC) #12
pdr.
On 2015/01/06 at 23:47:55, ananta wrote: > +dglazkov for Source owners. LGTM
5 years, 11 months ago (2015-01-06 23:50:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790733005/20001
5 years, 11 months ago (2015-01-06 23:51:08 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 04:25:09 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187943

Powered by Google App Engine
This is Rietveld 408576698