| Index: third_party/WebKit/Source/core/inspector/ContentSearchUtils.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/ContentSearchUtils.cpp b/third_party/WebKit/Source/core/inspector/ContentSearchUtils.cpp
|
| index 24d0fe1d3adf030383cba96dfd03d4de983d4591..a568cb2255548e09efaa68d1a64ca83ec02ed787 100644
|
| --- a/third_party/WebKit/Source/core/inspector/ContentSearchUtils.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/ContentSearchUtils.cpp
|
| @@ -107,11 +107,9 @@ PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::SearchMatch>> searchInTextB
|
| return result;
|
| }
|
|
|
| -static String findMagicComment(const String& content, const String& name, MagicCommentType commentType, bool* deprecated = 0)
|
| +static String findMagicComment(const String& content, const String& name, MagicCommentType commentType)
|
| {
|
| ASSERT(name.find("=") == kNotFound);
|
| - if (deprecated)
|
| - *deprecated = false;
|
|
|
| unsigned length = content.length();
|
| unsigned nameLength = name.length();
|
| @@ -133,7 +131,7 @@ static String findMagicComment(const String& content, const String& name, MagicC
|
| if ((content[pos + 1] != '/' || commentType != JavaScriptMagicComment)
|
| && (content[pos + 1] != '*' || commentType != CSSMagicComment))
|
| continue;
|
| - if (content[pos + 2] != '#' && content[pos + 2] != '@')
|
| + if (content[pos + 2] != '#')
|
| continue;
|
| if (content[pos + 3] != ' ' && content[pos + 3] != '\t')
|
| continue;
|
| @@ -149,9 +147,6 @@ static String findMagicComment(const String& content, const String& name, MagicC
|
| break;
|
| }
|
|
|
| - if (deprecated && content[pos + 2] == '@')
|
| - *deprecated = true;
|
| -
|
| ASSERT(equalSignPos);
|
| ASSERT(commentType != CSSMagicComment || closingCommentPos);
|
| size_t urlPos = equalSignPos + 1;
|
| @@ -173,14 +168,14 @@ static String findMagicComment(const String& content, const String& name, MagicC
|
| return match;
|
| }
|
|
|
| -String findSourceURL(const String& content, MagicCommentType commentType, bool* deprecated)
|
| +String findSourceURL(const String& content, MagicCommentType commentType)
|
| {
|
| - return findMagicComment(content, "sourceURL", commentType, deprecated);
|
| + return findMagicComment(content, "sourceURL", commentType);
|
| }
|
|
|
| -String findSourceMapURL(const String& content, MagicCommentType commentType, bool* deprecated)
|
| +String findSourceMapURL(const String& content, MagicCommentType commentType)
|
| {
|
| - return findMagicComment(content, "sourceMappingURL", commentType, deprecated);
|
| + return findMagicComment(content, "sourceMappingURL", commentType);
|
| }
|
|
|
| } // namespace ContentSearchUtils
|
|
|