Add support for search in single resource to page agent.
Created attachment 109014 [details] Patch
Comment on attachment 109014 [details] Patch Need to fix style, clearing r?.
Attachment 109014 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/http..." exit_code: 1 Source/WebCore/inspector/InspectorPageAgent.cpp:496: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorPageAgent.h:100: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 2 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 109015 [details] Patch
Attachment 109015 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/http..." exit_code: 1 Source/WebCore/inspector/InspectorPageAgent.cpp:496: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorPageAgent.h:100: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 2 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 109015 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=109015&action=review > Source/WebCore/inspector/Inspector.json:110 > + { "name": "line", "type": "string", "description": "Line with match." } "name": "lineText" or "name": "lineContent" > Source/WebCore/inspector/InspectorPageAgent.cpp:487 > +static PassRefPtr<InspectorObject> buildObjectForSearchMatch(int lineNumber, String line) Consider moving to ContentSearchUtil > Source/WebCore/inspector/InspectorPageAgent.cpp:522 > + RegularExpression regex = ContentSearchUtils::createSearchRegex(text, false, false); This all could belong to the utility method.
Committed r96223: <http://trac.webkit.org/changeset/96223>