Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: Source/core/layout/LayoutView.cpp

Issue 1202153004: Enable selection for the composed tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index 3034c3af7117c946acd22f826b7ce85cc912c9a3..b8ec8d96442f4e7b138bbbe62dceb33e89217d80 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -804,6 +804,8 @@ void LayoutView::commitPendingSelectionAlgorithm()
void LayoutView::commitPendingSelection()
{
+ if (RuntimeEnabledFeatures::selectionForWebComponentsEnabled())
+ return commitPendingSelectionAlgorithm<VisibleSelection::InComposedTree>();
commitPendingSelectionAlgorithm<VisibleSelection::InDOMTree>();
}

Powered by Google App Engine
This is Rietveld 408576698