Skip to content

Commit 3de0f0a

Browse files
Text Selection patch has been applied
1 parent eceb08b commit 3de0f0a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/core/render_widget_host_view_qt.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,13 +839,11 @@ void RenderWidgetHostViewQt::OnTextSelectionChanged(content::TextInputManager *t
839839
return;
840840

841841
#if defined(USE_OZONE)
842-
#if defined(HAS_TEXT_SELECTION_PATCH)
843842
if (!selection->selected_text().empty() && selection->user_initiated()) {
844843
// Set the CLIPBOARD_TYPE_SELECTION to the ui::Clipboard.
845844
ui::ScopedClipboardWriter clipboard_writer(ui::ClipboardBuffer::kSelection);
846845
clipboard_writer.WriteText(selection->selected_text());
847846
}
848-
#endif
849847
#endif // defined(USE_OZONE)
850848

851849
m_imState |= ImStateFlags::TextSelectionUpdated;

src/core/web_contents_adapter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,11 +1743,7 @@ void WebContentsAdapter::resetSelection()
17431743
if (auto rwhv = static_cast<RenderWidgetHostViewQt *>(m_webContents->GetRenderWidgetHostView())) {
17441744
if (auto mgr = rwhv->GetTextInputManager())
17451745
if (auto selection = const_cast<content::TextInputManager::TextSelection *>(mgr->GetTextSelection(rwhv)))
1746-
#if defined(HAS_TEXT_SELECTION_PATCH)
17471746
selection->SetSelection(base::string16(), 0, gfx::Range(), false);
1748-
#else
1749-
selection->SetSelection(base::string16(), 0, gfx::Range());
1750-
#endif
17511747
}
17521748
}
17531749

0 commit comments

Comments
 (0)