Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@ -78,8 +78,9 @@ CEF_LABEL_BUTTON_IMPL_T void CEF_LABEL_BUTTON_IMPL_D::SetImage(
CefRefPtr<CefImage> image) {
CEF_REQUIRE_VALID_RETURN_VOID();
gfx::ImageSkia image_skia;
if (image)
if (image) {
image_skia = static_cast<CefImageImpl*>(image.get())->AsImageSkia();
}
ParentClass::root_view()->SetImage(
static_cast<views::Button::ButtonState>(button_state), image_skia);
}
@ -89,8 +90,9 @@ CEF_LABEL_BUTTON_IMPL_T CefRefPtr<CefImage> CEF_LABEL_BUTTON_IMPL_D::GetImage(
CEF_REQUIRE_VALID_RETURN(nullptr);
const gfx::ImageSkia& image_skia = ParentClass::root_view()->GetImage(
static_cast<views::Button::ButtonState>(button_state));
if (image_skia.isNull())
if (image_skia.isNull()) {
return nullptr;
}
return new CefImageImpl(image_skia);
}