From 6668b07fcd51f86be243b9e08e667224e30c0cf8 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 27 Jun 2012 09:28:46 +0200 Subject: Imported WebKit commit 26cd9bd8ab0471ffe987c9b60368f63dc0f1f31b (http://svn.webkit.org/repository/webkit/trunk@121325) New snapshot with more Windows build fixes --- Source/WebCore/testing/Internals.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Source/WebCore/testing/Internals.cpp') diff --git a/Source/WebCore/testing/Internals.cpp b/Source/WebCore/testing/Internals.cpp index 44ef4d5c5..2270b4acc 100644 --- a/Source/WebCore/testing/Internals.cpp +++ b/Source/WebCore/testing/Internals.cpp @@ -1005,7 +1005,7 @@ void Internals::setBatteryStatus(Document* document, const String& eventType, bo #endif } -void Internals::setNetworkInformation(Document* document, const String& eventType, long bandwidth, bool metered, ExceptionCode& ec) +void Internals::setNetworkInformation(Document* document, const String& eventType, double bandwidth, bool metered, ExceptionCode& ec) { if (!document || !document->page()) { ec = INVALID_ACCESS_ERR; @@ -1028,6 +1028,14 @@ bool Internals::hasSpellingMarker(Document* document, int from, int length, Exce return document->frame()->editor()->selectionStartHasMarkerFor(DocumentMarker::Spelling, from, length); } + +bool Internals::hasAutocorrectedMarker(Document* document, int from, int length, ExceptionCode&) +{ + if (!document || !document->frame()) + return 0; + + return document->frame()->editor()->selectionStartHasMarkerFor(DocumentMarker::Autocorrected, from, length); +} #if ENABLE(INSPECTOR) unsigned Internals::numberOfLiveNodes() const -- cgit v1.2.1