Commit cbdb8bd6 authored by Maksim Sisov's avatar Maksim Sisov Committed by Commit Bot

OmniboxTextView: fix gcc error for structure initialization

It looks like there is bug in GCC 6, which cannot go through
structure initialization normally.

Thus, instead of a default initialization of one of the members,
explicitly initialize it to a default value.

Change-Id: Ia55cc6658e6b6b2f8a80c2582dd28f001c9e648c
Reviewed-on: https://chromium-review.googlesource.com/1213181Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Cr-Commit-Position: refs/heads/master@{#589614}
parent 882d37ed
...@@ -175,7 +175,8 @@ void ApplyTextStyleForType(SuggestionAnswer::TextStyle text_style, ...@@ -175,7 +175,8 @@ void ApplyTextStyleForType(SuggestionAnswer::TextStyle text_style,
style = {part_color, .baseline = gfx::SUPERIOR}; style = {part_color, .baseline = gfx::SUPERIOR};
break; break;
case SuggestionAnswer::TextStyle::BOLD: case SuggestionAnswer::TextStyle::BOLD:
style = {part_color, .weight = gfx::Font::Weight::BOLD}; style = {part_color, .baseline = gfx::NORMAL_BASELINE,
.weight = gfx::Font::Weight::BOLD};
break; break;
case SuggestionAnswer::TextStyle::NORMAL: case SuggestionAnswer::TextStyle::NORMAL:
case SuggestionAnswer::TextStyle::NORMAL_DIM: case SuggestionAnswer::TextStyle::NORMAL_DIM:
......
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