mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Delete Alloy bootstrap (fixes #3685)
This commit is contained in:
@ -9,7 +9,6 @@
|
||||
#include "cef/libcef/browser/chrome/views/chrome_child_window.h"
|
||||
#include "cef/libcef/browser/context.h"
|
||||
#include "cef/libcef/browser/thread_util.h"
|
||||
#include "cef/libcef/features/runtime.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@ -154,11 +153,6 @@ CefRefPtr<CefBrowser> CefBrowserHost::CreateBrowserSync(
|
||||
|
||||
// static
|
||||
bool CefBrowserCreateParams::IsChromeStyle(const CefWindowInfo* window_info) {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
if (!cef::IsChromeRuntimeEnabled()) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
if (!window_info) {
|
||||
return true;
|
||||
}
|
||||
@ -169,12 +163,6 @@ bool CefBrowserCreateParams::IsChromeStyle(const CefWindowInfo* window_info) {
|
||||
}
|
||||
|
||||
bool CefBrowserCreateParams::IsChromeStyle() const {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
if (!cef::IsChromeRuntimeEnabled()) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
const bool chrome_style_via_window_info = IsChromeStyle(window_info.get());
|
||||
|
||||
if (popup_with_alloy_style_opener) {
|
||||
@ -210,11 +198,7 @@ void CefBrowserCreateParams::InitWindowInfo(CefWindowInfo* window_info,
|
||||
window_info->SetAsPopup(nullptr, CefString());
|
||||
#endif
|
||||
|
||||
if (
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
cef::IsChromeRuntimeEnabled() &&
|
||||
#endif
|
||||
opener->IsAlloyStyle()) {
|
||||
if (opener->IsAlloyStyle()) {
|
||||
// Give the popup the same runtime style as the opener.
|
||||
window_info->runtime_style = CEF_RUNTIME_STYLE_ALLOY;
|
||||
}
|
||||
@ -224,13 +208,6 @@ void CefBrowserCreateParams::MaybeSetWindowInfo(
|
||||
const CefWindowInfo& new_window_info,
|
||||
bool allow_alloy_style,
|
||||
bool allow_chrome_style) {
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
if (!cef::IsChromeRuntimeEnabled()) {
|
||||
// Chrome style is not supported wih the Alloy bootstrap.
|
||||
allow_chrome_style = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (allow_chrome_style && new_window_info.windowless_rendering_enabled) {
|
||||
// Chrome style is not supported with windowles rendering.
|
||||
allow_chrome_style = false;
|
||||
@ -263,11 +240,7 @@ void CefBrowserCreateParams::MaybeSetWindowInfo(
|
||||
if (!is_chrome_style ||
|
||||
chrome_child_window::HasParentHandle(new_window_info)) {
|
||||
window_info = std::make_unique<CefWindowInfo>(new_window_info);
|
||||
if (
|
||||
#if BUILDFLAG(ENABLE_ALLOY_BOOTSTRAP)
|
||||
cef::IsChromeRuntimeEnabled() &&
|
||||
#endif
|
||||
!allow_chrome_style) {
|
||||
if (!allow_chrome_style) {
|
||||
// Only Alloy style is allowed.
|
||||
window_info->runtime_style = CEF_RUNTIME_STYLE_ALLOY;
|
||||
} else if (reset_style) {
|
||||
|
Reference in New Issue
Block a user