RESOLVED FIXED Bug 209107
Share HitTestResult::addNodeToListBasedTestResult() impl for LayoutRect and FloatRect overloads
https://bugs.webkit.org/show_bug.cgi?id=209107
Summary Share HitTestResult::addNodeToListBasedTestResult() impl for LayoutRect and F...
Daniel Bates
Reported 2020-03-14 10:31:39 PDT
There are two overloads HitTestResult::addNodeToListBasedTestResult(): one for LayoutRect and one for FloatRect. Maybe one of the overloads is not necessary. I don't know, yet, but the implementation of these overloads are identical. As a first step towards future simplifications let's share the implementation and thus remove duplication.
Attachments
Patch (3.96 KB, patch)
2020-03-14 10:46 PDT, Daniel Bates
no flags
Daniel Bates
Comment 1 2020-03-14 10:46:25 PDT
Daniel Bates
Comment 2 2020-03-14 10:48:25 PDT
Comment on attachment 393585 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393585&action=review > Source/WebCore/rendering/HitTestResult.h:152 > + template<typename RectType> HitTestProgress addNodeToListBasedTestResultCommon(Node*, const HitTestRequest&, const HitTestLocation&, const RectType&); Could also make node const....I'll try and maybe fold it into this patch.
Daniel Bates
Comment 3 2020-03-14 10:50:38 PDT
Comment on attachment 393585 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393585&action=review >> Source/WebCore/rendering/HitTestResult.h:152 >> + template<typename RectType> HitTestProgress addNodeToListBasedTestResultCommon(Node*, const HitTestRequest&, const HitTestLocation&, const RectType&); > > Could also make node const....I'll try and maybe fold it into this patch. Actually, I am not going to do this in this patch as I would need to fix up more things....
Daniel Bates
Comment 4 2020-03-14 11:59:21 PDT
Thanks for the review!
Daniel Bates
Comment 5 2020-03-14 12:01:52 PDT
Comment on attachment 393585 [details] Patch Clearing flags on attachment: 393585 Committed r258468: <https://trac.webkit.org/changeset/258468>
Daniel Bates
Comment 6 2020-03-14 12:01:53 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2020-03-14 12:02:14 PDT
Note You need to log in before you can comment on or make changes to this bug.