Skip to content

Commit

Permalink
Prune ComputeVisibleSelectionInDOMTreeDeprecated from DataTransfer
Browse files Browse the repository at this point in the history
This patch prunes the call site of the deprecated function from
DataTransfer::WriteSelection, which is safe because only site
DragController::PopulateDragDataTransfer already has clean layout.

Bug: 40509385
Change-Id: I0338b14af62126bd2b61784f6e648e7b01c7be76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5344843
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Siye Liu <siliu@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1270317}
  • Loading branch information
siliu1 authored and Chromium LUCI CQ committed Mar 8, 2024
1 parent 8e8d0c2 commit dd3c965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/blink/renderer/core/clipboard/data_transfer.cc
Expand Up @@ -534,7 +534,7 @@ void DataTransfer::WriteSelection(const FrameSelection& selection) {
return;

if (!EnclosingTextControl(
selection.ComputeVisibleSelectionInDOMTreeDeprecated().Start())) {
selection.ComputeVisibleSelectionInDOMTree().Start())) {
data_object_->SetHTMLAndBaseURL(selection.SelectedHTMLForClipboard(),
selection.GetFrame()->GetDocument()->Url());
}
Expand Down

0 comments on commit dd3c965

Please sign in to comment.