-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also add our AllowFontFamily method to TestFontSelector to avoid comp…
…ile errors
- Loading branch information
1 parent
ea90f2a
commit 4f3f26b
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
chromium_src/third_party/blink/renderer/platform/testing/font_test_helpers.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* Copyright (c) 2022 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
// We must include these explicitly before redefining method names that they | ||
// also use. | ||
#include "third_party/blink/renderer/platform/fonts/font_fallback_list.h" | ||
#include "third_party/blink/renderer/platform/fonts/font_selector.h" | ||
|
||
#define IsPlatformFamilyMatchAvailable \ | ||
AllowFontFamily(const AtomicString& family_name) override { return true; } \ | ||
bool IsPlatformFamilyMatchAvailable | ||
|
||
#include "src/third_party/blink/renderer/platform/testing/font_test_helpers.cc" |