DescriptionRepaint selection when element with ::selection style is recalculated.
Selection was not repainted unless the selected text was repainted due
to other style changes. Now, if the ComputedStyle is recalculated for
an element and either the old or the new ComputedStyle had a bit set
for PseudoIdSelection, schedule paint invalidation for the selection
leaf children of that element.
Note that we don't need to traverse down the descendants because the
current implementation of ::selection in Blink only affects direct
children. The selection state is only propagated to containing block
ancestor, which is why we look for a containing block to check if any
of the children is selected.
R=mstensho@opera.com
BUG=685174
Review-Url: https://codereview.chromium.org/2709693003
Cr-Commit-Position: refs/heads/master@{#451992}
Committed: https://chromium.googlesource.com/chromium/src/+/eff357ef3a21515a5bfaa487b687d7d7353024f2
Patch Set 1 #
Total comments: 11
Patch Set 2 : Make DCHECK an if-test instead. #Patch Set 3 : Fixed review issues #
Messages
Total messages: 18 (11 generated)
|