fix: missing badge text on Windows (#41618)

5053607
This commit is contained in:
Shelley Vohr 2024-03-19 12:50:30 +01:00 committed by GitHub
parent b02918883f
commit 433d6c33d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 4 deletions

View file

@ -40,6 +40,7 @@
#include "shell/common/gin_helper/dictionary.h"
#include "shell/common/skia_util.h"
#include "shell/common/thread_restrictions.h"
#include "skia/ext/font_utils.h"
#include "skia/ext/legacy_display_globals.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkFont.h"
@ -591,7 +592,7 @@ void Browser::UpdateBadgeContents(
paint.reset();
paint.setColor(kForegroundColor);
SkFont font;
SkFont font = skia::DefaultFont();
SkRect bounds;
int text_size = kMaxTextSize;