Remove Range::create and almost all uses of live ranges: after this just burn down about 150 uses of createLiveRange
Created attachment 405654 [details] Patch
The follow up to this is search and destroy of calls to createLiveRange. Should be done in chunks in case we break something.
Created attachment 405660 [details] Patch
Created attachment 405665 [details] Patch
Created attachment 405709 [details] Patch
Last version passed EWS all green, but didn’t have change log yet. Now up with change log and ready to review.
Comment on attachment 405709 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405709&action=review > Source/WebCore/dom/DocumentMarkerController.h:118 > +WEBCORE_EXPORT SimpleRange range(Node&, const DocumentMarker&); I am not sure how I feel about this just being called "range", though I can see the arguments against making this an overload of makeSimpleRange as well. > Source/WebKitLegacy/ios/WebCoreSupport/WebVisiblePosition.mm:479 > + auto firstVP = [first _visiblePosition]; > + auto secondVP = [second _visiblePosition]; Not new, but also don't think the abbreviations are great here.
Committed r265176: <https://trac.webkit.org/changeset/265176> All reviewed patches have been landed. Closing bug and clearing flags on attachment 405709 [details].
<rdar://problem/66425375>
Comment on attachment 405709 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405709&action=review >> Source/WebCore/dom/DocumentMarkerController.h:118 >> +WEBCORE_EXPORT SimpleRange range(Node&, const DocumentMarker&); > > I am not sure how I feel about this just being called "range", though I can see the arguments against making this an overload of makeSimpleRange as well. I will rename to makeSimpleRange for now. >> Source/WebKitLegacy/ios/WebCoreSupport/WebVisiblePosition.mm:479 >> + auto secondVP = [second _visiblePosition]; > > Not new, but also don't think the abbreviations are great here. I agree and almost changed them. Probably should have gone with firstPosition and secondPosition.