DescriptionEnable selection for the composed tree
This CL adds a new flag 'SelectionForComposedTree' and uses this. If
the flag is on, the types for the composed tree like
EditingInComposedTreeStrategy are passed to the template parameter
instead of those of the DOM tree.
Selection for the composed tree is implemented by switching tree-
traversing strategies. Technically, this doesn't affect websites
which don't use shadow DOMs. The problems would be on websites which
use shadow DOMs if we have, and such websites account for only 2% now.
In an emergency case, we can revert this by hiding the flag.
This patch is result of collaboration work with yosin@chromium.org
for selection of web components. We are now preparing this feature at
crrev.com/1106433002.
BUG=275851
TEST=./Tools/Scripts/run-webkit-tests editing/shadow/selection-shadow-mouse-drag.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197704
Patch Set 1 #
Total comments: 7
Patch Set 2 : tkent's review #Patch Set 3 : Rename the flag #Messages
Total messages: 19 (2 generated)
|