diff options
author | Steve Block <steveblock@google.com> | 2011-01-05 12:15:11 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-01-06 14:14:00 +0000 |
commit | d06194330da2bb8da887d2e1adeacb3a5c1504b2 (patch) | |
tree | e0af8413af65a8e30630563441af7bdb8478e513 /WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp | |
parent | 419a5cf2f8db6ca014df624865197ffb82caad37 (diff) | |
download | external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.zip external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.gz external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.bz2 |
Merge WebKit at r72805: Initial merge by Git
Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.
Change-Id: I5d2bb4e8cee9d39ae8485abf48bdb55ecf8b3790
Diffstat (limited to 'WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp')
-rw-r--r-- | WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp b/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp index a2863b1..a5a7270 100644 --- a/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp +++ b/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp @@ -437,32 +437,6 @@ bool DumpRenderTreeSupportQt::isCommandEnabled(QWebPage* page, const QString& na return page->handle()->page->focusController()->focusedOrMainFrame()->editor()->command(name).isEnabled(); } -bool DumpRenderTreeSupportQt::findString(QWebPage* page, const QString& string, const QStringList& optionArray) -{ - // 1. Parse the options from the array - WebCore::FindOptions options = 0; - const int optionCount = optionArray.size(); - for (int i = 0; i < optionCount; ++i) { - const QString& option = optionArray.at(i); - if (option == QLatin1String("CaseInsensitive")) - options |= WebCore::CaseInsensitive; - else if (option == QLatin1String("AtWordStarts")) - options |= WebCore::AtWordStarts; - else if (option == QLatin1String("TreatMedialCapitalAsWordStart")) - options |= WebCore::TreatMedialCapitalAsWordStart; - else if (option == QLatin1String("Backwards")) - options |= WebCore::Backwards; - else if (option == QLatin1String("WrapAround")) - options |= WebCore::WrapAround; - else if (option == QLatin1String("StartInSelection")) - options |= WebCore::StartInSelection; - } - - // 2. find the string - WebCore::Frame* frame = page->handle()->page->focusController()->focusedOrMainFrame(); - return frame && frame->editor()->findString(string, options); -} - QString DumpRenderTreeSupportQt::markerTextForListItem(const QWebElement& listItem) { return WebCore::markerTextForListItem(listItem.m_element); |