| Index: ui/base/resource/resource_bundle.cc
|
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
|
| index 2cfe06cc11c2a7ecf6b81a1f75ed8508c781de1e..d8a37385c71b51bb8f58635d54a3e4bb70b1b737 100644
|
| --- a/ui/base/resource/resource_bundle.cc
|
| +++ b/ui/base/resource/resource_bundle.cc
|
| @@ -638,44 +638,44 @@ void ResourceBundle::LoadFontsIfNecessary() {
|
|
|
| if (!bold_font_list_.get()) {
|
| bold_font_list_.reset(new gfx::FontList());
|
| - *bold_font_list_ = base_font_list_->DeriveFontList(
|
| - base_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| + *bold_font_list_ = base_font_list_->Derive(
|
| + 0, base_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| }
|
|
|
| if (!small_font_list_.get()) {
|
| small_font_list_.reset(new gfx::FontList());
|
| - *small_font_list_ = base_font_list_->DeriveFontListWithSize(
|
| - base_font_list_->GetFontSize() + kSmallFontSizeDelta);
|
| + *small_font_list_ =
|
| + base_font_list_->DeriveWithSizeDelta(kSmallFontSizeDelta);
|
| }
|
|
|
| if (!small_bold_font_list_.get()) {
|
| small_bold_font_list_.reset(new gfx::FontList());
|
| - *small_bold_font_list_ = small_font_list_->DeriveFontList(
|
| - small_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| + *small_bold_font_list_ = small_font_list_->Derive(
|
| + 0, small_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| }
|
|
|
| if (!medium_font_list_.get()) {
|
| medium_font_list_.reset(new gfx::FontList());
|
| - *medium_font_list_ = base_font_list_->DeriveFontListWithSize(
|
| - base_font_list_->GetFontSize() + kMediumFontSizeDelta);
|
| + *medium_font_list_ =
|
| + base_font_list_->DeriveWithSizeDelta(kMediumFontSizeDelta);
|
| }
|
|
|
| if (!medium_bold_font_list_.get()) {
|
| medium_bold_font_list_.reset(new gfx::FontList());
|
| - *medium_bold_font_list_ = medium_font_list_->DeriveFontList(
|
| - medium_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| + *medium_bold_font_list_ = medium_font_list_->Derive(
|
| + 0, medium_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| }
|
|
|
| if (!large_font_list_.get()) {
|
| large_font_list_.reset(new gfx::FontList());
|
| - *large_font_list_ = base_font_list_->DeriveFontListWithSize(
|
| - base_font_list_->GetFontSize() + kLargeFontSizeDelta);
|
| + *large_font_list_ =
|
| + base_font_list_->DeriveWithSizeDelta(kLargeFontSizeDelta);
|
| }
|
|
|
| if (!large_bold_font_list_.get()) {
|
| large_bold_font_list_.reset(new gfx::FontList());
|
| - *large_bold_font_list_ = large_font_list_->DeriveFontList(
|
| - large_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| + *large_bold_font_list_ = large_font_list_->Derive(
|
| + 0, large_font_list_->GetFontStyle() | gfx::Font::BOLD);
|
| }
|
| }
|
| }
|
|
|