DescriptionIntroduce class RelocatablePosition
|RelocatablePosition| is a helper class for keeping track of a |Position| in
a document upon DOM tree changes even if the given |Position|'s original
anchor node is moved out of document. The class is implemented by using a
temporary |Range| object to keep track of the |Position|, and disposing the
|Range| when out of scope.
|RelocatablePosition| will be used in editing code, for example:
https://codereview.chromium.org/2127503002/
BUG=n/a
TEST=webkit_unit_tests --gtest_filter=RelocatablePositionTest.position
Committed: https://crrev.com/485ff73a6daeed372189a91ff19edb88ebea18b0
Cr-Commit-Position: refs/heads/master@{#403878}
Patch Set 1 #
Total comments: 6
Patch Set 2 : nits fixed #Patch Set 3 : Add CORE_EXPORT #
Dependent Patchsets: Messages
Total messages: 16 (7 generated)
|