Chromium Code Reviews
DescriptionMake flat tree version RenderedPosition constructor to work on flat tree
This patch makes flat tree version of |RenderedPosition| constructor to work
on flat tree rather than DOM tree to calculate inline box position for
flat tree position correctly.
Before this patch, flat tree version of |RenderedPosition| constructor uses
|toPositionInDOMTree()|, but id doesn't work well for children of shadow
root and insertion point, e.g. CONENT elements and SLOT elements.
In attached layout test, |RenderedPosition| constructor attempts to compute
for CONTENT element in DETAIL element.
BUG=616070, 618421
TEST=LayoutTests/editing/selection/select_all/select_all_details_crash.html
Committed: https://crrev.com/874ac2203bcbf8d00ccb7c447ad2d307cb3dd7ce
Cr-Commit-Position: refs/heads/master@{#399150}
Patch Set 1 : 2016-06-10T15:56:25 #Patch Set 2 : 2016-06-10T15:59:19 #
Total comments: 2
Patch Set 3 : 2016-06-10T18:14:53 Update for review comments #
Messages
Total messages: 12 (6 generated)
|
||||||||||||||||||||||||||||