mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
Finally, after a long wait, an electron port for FreeBSD lands in the portstree. A huge thanks to everyone contributed to this huge effort and to the maintainer that is willing to take the burden of the maintainership!
38 lines
1.6 KiB
C++
38 lines
1.6 KiB
C++
--- chrome/browser/renderer_preferences_util.cc.orig 2019-03-15 06:37:04 UTC
|
|
+++ chrome/browser/renderer_preferences_util.cc
|
|
@@ -19,7 +19,7 @@
|
|
#include "third_party/blink/public/public_buildflags.h"
|
|
#include "third_party/skia/include/core/SkColor.h"
|
|
|
|
-#if defined(OS_LINUX) || defined(OS_ANDROID)
|
|
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
|
|
#include "ui/gfx/font_render_params.h"
|
|
#endif
|
|
|
|
@@ -31,7 +31,7 @@
|
|
#include "ui/base/cocoa/defaults_utils.h"
|
|
#endif
|
|
|
|
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
+#if defined(USE_AURA) && (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
|
|
#include "chrome/browser/themes/theme_service.h"
|
|
#include "chrome/browser/themes/theme_service_factory.h"
|
|
#include "ui/views/linux_ui/linux_ui.h"
|
|
@@ -130,7 +130,7 @@ void UpdateFromSystemSettings(content::RendererPrefere
|
|
prefs->caret_blink_interval = interval;
|
|
#endif
|
|
|
|
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
+#if defined(USE_AURA) && (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
|
|
views::LinuxUI* linux_ui = views::LinuxUI::instance();
|
|
if (linux_ui) {
|
|
if (ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) {
|
|
@@ -152,7 +152,7 @@ void UpdateFromSystemSettings(content::RendererPrefere
|
|
}
|
|
#endif
|
|
|
|
-#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN)
|
|
+#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_WIN) || defined(OS_BSD)
|
|
CR_DEFINE_STATIC_LOCAL(const gfx::FontRenderParams, params,
|
|
(gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), NULL)));
|
|
prefs->should_antialias_text = params.antialiasing;
|