The Blink Rename
Identifiers in Blink now largely follow the standard Chrome style
conventions, with several additional rules:
- web-exposed methods remain namedLikeThis() for consistency with
Javascript bindings.
- method names are never named_in_hacker_case()
- enumerator names are kNamedLikeThis.
This commit was generated by the following process.
1. Running //tools/clang/rewrite_to_chrome_style across the codebase.
2. Apply manual fixes.
3. git cl format
BUG=578344
[email protected]
[email protected]
Change-Id: Ide5d397d3c6a5d973fd0a6f81dccf82561d4bb71
Reviewed-on: https://chromium-review.googlesource.com/472192
Reviewed-by: Blink Reformat <[email protected]>
Cr-Commit-Position: refs/heads/master@{#463139}
diff --git a/content/renderer/render_view_win.cc b/content/renderer/render_view_win.cc
index 3bef28e..126d5f4 100644
--- a/content/renderer/render_view_win.cc
+++ b/content/renderer/render_view_win.cc
@@ -17,14 +17,14 @@
const RendererPreferences& prefs = renderer_preferences_;
// Cache the system font metrics in blink.
- blink::WebFontRendering::setMenuFontMetrics(
+ blink::WebFontRendering::SetMenuFontMetrics(
prefs.menu_font_family_name.c_str(), prefs.menu_font_height);
- blink::WebFontRendering::setSmallCaptionFontMetrics(
+ blink::WebFontRendering::SetSmallCaptionFontMetrics(
prefs.small_caption_font_family_name.c_str(),
prefs.small_caption_font_height);
- blink::WebFontRendering::setStatusFontMetrics(
+ blink::WebFontRendering::SetStatusFontMetrics(
prefs.status_font_family_name.c_str(), prefs.status_font_height);
SkFontLCDConfig::SetSubpixelOrder(
@@ -34,10 +34,11 @@
gfx::FontRenderParams::SubpixelRenderingToSkiaLCDOrientation(
prefs.subpixel_rendering));
- blink::WebFontRendering::setAntialiasedTextEnabled(
+ blink::WebFontRendering::SetAntialiasedTextEnabled(
prefs.should_antialias_text);
- blink::WebFontRendering::setLCDTextEnabled(prefs.subpixel_rendering
- != gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE);
+ blink::WebFontRendering::SetLCDTextEnabled(
+ prefs.subpixel_rendering !=
+ gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE);
}
void RenderViewImpl::UpdateThemePrefs() {