| Index: Source/core/layout/PendingSelection.cpp
|
| diff --git a/Source/core/layout/PendingSelection.cpp b/Source/core/layout/PendingSelection.cpp
|
| index 84f945064dc3ed8d69cefe5ae1ed5ef292621d13..8066fddabccdafbc4561c6f797d92030fa5b93c9 100644
|
| --- a/Source/core/layout/PendingSelection.cpp
|
| +++ b/Source/core/layout/PendingSelection.cpp
|
| @@ -69,6 +69,8 @@ bool PendingSelection::isInDocumentAlgorithm(const Document& document) const
|
|
|
| bool PendingSelection::isInDocument(const Document& document) const
|
| {
|
| + if (RuntimeEnabledFeatures::selectionForComposedTreeEnabled())
|
| + return isInDocumentAlgorithm<VisibleSelection::InComposedTree>(document);
|
| return isInDocumentAlgorithm<VisibleSelection::InDOMTree>(document);
|
| }
|
|
|
| @@ -102,6 +104,8 @@ VisibleSelection PendingSelection::calcVisibleSelectionAlgorithm() const
|
|
|
| VisibleSelection PendingSelection::calcVisibleSelection() const
|
| {
|
| + if (RuntimeEnabledFeatures::selectionForComposedTreeEnabled())
|
| + return calcVisibleSelectionAlgorithm<VisibleSelection::InComposedTree>();
|
| return calcVisibleSelectionAlgorithm<VisibleSelection::InDOMTree>();
|
| }
|
|
|
|
|