| Summary: | Page::findStringMatchingRanges() should take Vector<RefPtr<Range>> by reference instead of pointer | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Zan Dobersek <zan> | ||||||
| Component: | New Bugs | Assignee: | Zan Dobersek <zan> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | andersca | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Zan Dobersek
2014-06-09 23:13:15 PDT
Created attachment 232772 [details]
Patch
Comment on attachment 232772 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=232772&action=review > Source/WebCore/page/Page.cpp:542 > +void Page::findStringMatchingRanges(const String& target, FindOptions options, int limit, Vector<RefPtr<Range>>& matchRanges, int& indexForSelection) Can this be a const reference? Comment on attachment 232772 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=232772&action=review >> Source/WebCore/page/Page.cpp:542 >> +void Page::findStringMatchingRanges(const String& target, FindOptions options, int limit, Vector<RefPtr<Range>>& matchRanges, int& indexForSelection) > > Can this be a const reference? No, that would clash with Editor::countMatchesForText() which expects a pointer to a non-const Vector. Created attachment 233112 [details]
Patch
Comment on attachment 233112 [details] Patch Clearing flags on attachment: 233112 Committed r170012: <http://trac.webkit.org/changeset/170012> All reviewed patches have been landed. Closing bug. |