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

@ -155,10 +155,11 @@ void CefTextfieldImpl::SetFontList(const CefString& font_list) {
void CefTextfieldImpl::ApplyTextColor(cef_color_t color,
const CefRange& range) {
CEF_REQUIRE_VALID_RETURN_VOID();
if (range.from == range.to)
if (range.from == range.to) {
root_view()->SetColor(color);
else
} else {
root_view()->ApplyColor(color, gfx::Range(range.from, range.to));
}
}
void CefTextfieldImpl::ApplyTextStyle(cef_text_style_t style,
@ -180,9 +181,10 @@ bool CefTextfieldImpl::IsCommandEnabled(cef_text_field_commands_t command_id) {
void CefTextfieldImpl::ExecuteCommand(cef_text_field_commands_t command_id) {
CEF_REQUIRE_VALID_RETURN_VOID();
if (root_view()->IsCommandIdEnabled(CefCommandIdToChromeId(command_id)))
if (root_view()->IsCommandIdEnabled(CefCommandIdToChromeId(command_id))) {
root_view()->ExecuteCommand(CefCommandIdToChromeId(command_id),
ui::EF_NONE);
}
}
void CefTextfieldImpl::ClearEditHistory() {