| Index: Source/WebCore/inspector/InspectorPageAgent.cpp
|
| ===================================================================
|
| --- Source/WebCore/inspector/InspectorPageAgent.cpp (revision 98111)
|
| +++ Source/WebCore/inspector/InspectorPageAgent.cpp (working copy)
|
| @@ -484,10 +484,13 @@
|
| return false;
|
| }
|
|
|
| -void InspectorPageAgent::searchInResource(ErrorString*, const String& frameId, const String& url, const String& query, RefPtr<InspectorArray>* results)
|
| +void InspectorPageAgent::searchInResource(ErrorString*, const String& frameId, const String& url, const String& query, const bool* const optionalCaseSensitive, const bool* const optionalIsRegex, RefPtr<InspectorArray>* results)
|
| {
|
| *results = InspectorArray::create();
|
|
|
| + bool isRegex = optionalIsRegex ? *optionalIsRegex : false;
|
| + bool caseSensitive = optionalCaseSensitive ? *optionalCaseSensitive : false;
|
| +
|
| Frame* frame = frameForId(frameId);
|
| KURL kurl(ParsedURLString, url);
|
|
|
| @@ -510,7 +513,7 @@
|
| if (!success)
|
| return;
|
|
|
| - *results = ContentSearchUtils::searchInTextByLines(query, content);
|
| + *results = ContentSearchUtils::searchInTextByLines(content, query, caseSensitive, isRegex);
|
| }
|
|
|
| static PassRefPtr<InspectorObject> buildObjectForSearchResult(const String& frameId, const String& url, int matchesCount)
|
|
|