| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 429e18c4d9aeaa4b959c4facb739b8951a8f5636..d24834598ee3489320979ce17cc6e8dd12cc6662 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -175,6 +175,8 @@
|
| result = DocumentMarker::AllMarkers();
|
| else if (equalIgnoringCase(markerType, "Spelling"))
|
| result = DocumentMarker::Spelling;
|
| + else if (equalIgnoringCase(markerType, "Grammar"))
|
| + result = DocumentMarker::Grammar;
|
| else if (equalIgnoringCase(markerType, "TextMatch"))
|
| result = DocumentMarker::TextMatch;
|
| else
|
| @@ -1608,6 +1610,15 @@
|
| result.append(memoryCache()->capacity());
|
| memoryCache()->setCapacities(minDeadBytes, maxDeadBytes, totalBytes);
|
| return result;
|
| +}
|
| +
|
| +bool Internals::hasGrammarMarker(Document* document, int from, int length)
|
| +{
|
| + ASSERT(document);
|
| + if (!document->frame())
|
| + return false;
|
| +
|
| + return document->frame()->spellChecker().selectionStartHasMarkerFor(DocumentMarker::Grammar, from, length);
|
| }
|
|
|
| unsigned Internals::numberOfScrollableAreas(Document* document)
|
|
|