DescriptionUpdate owner document of Range objects if start/end boundary points in different document
This patch updates owner document of Range objects when orphan Node object moved
to another document in new member function |Range::updateOwnerDocumentIfNeeded|.
Note: when we move non-null parent Node object to another document, it is done
by removeChild and appendChild and Range objects to reset to start of document.
The root cause of issue 350362 is boundary points of Range objects isn't
adjusted when owner document of Range and boundary points are different.
Because |Range::nodeChildrenChanged|, which adjusts boundary points for
|Node.appendChild|, is called for Range objects in another document which
isn't owner of Range.
This patch also updates "move-detached-child-in-range.html" to have right
value.
BUG=350362
TEST=LayoutTests/fast/dom/Range/range-extract-contents-after-move-to-another-document-crash.html
TEST=LayoutTests/fast/dom/move-detached-child-in-range.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176410
Patch Set 1 : 2014-06-17T06:07:48 #
Total comments: 8
Patch Set 2 : 2014-06-18T05:53:53 #
Total comments: 4
Patch Set 3 : 2014-06-18T06:46:10 #
Messages
Total messages: 12 (0 generated)
|