mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update source files for bracket style
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user