diff options
Diffstat (limited to 'WebKit/qt/WebCoreSupport')
-rw-r--r-- | WebKit/qt/WebCoreSupport/ChromeClientQt.cpp | 7 | ||||
-rw-r--r-- | WebKit/qt/WebCoreSupport/ChromeClientQt.h | 2 | ||||
-rw-r--r-- | WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp | 26 | ||||
-rw-r--r-- | WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h | 1 | ||||
-rw-r--r-- | WebKit/qt/WebCoreSupport/EditorClientQt.cpp | 2 | ||||
-rw-r--r-- | WebKit/qt/WebCoreSupport/EditorClientQt.h | 2 |
6 files changed, 5 insertions, 35 deletions
diff --git a/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp b/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp index e72ef3e..d4875a8 100644 --- a/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp +++ b/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp @@ -617,12 +617,9 @@ void ChromeClientQt::scheduleCompositingLayerSync() platformPageClient()->markForSync(true); } -ChromeClient::CompositingTriggerFlags ChromeClientQt::allowedCompositingTriggers() const +bool ChromeClientQt::allowsAcceleratedCompositing() const { - if (platformPageClient() && platformPageClient()->allowsAcceleratedCompositing()) - return AllTriggers; - - return 0; + return (platformPageClient() && platformPageClient()->allowsAcceleratedCompositing()); } #endif diff --git a/WebKit/qt/WebCoreSupport/ChromeClientQt.h b/WebKit/qt/WebCoreSupport/ChromeClientQt.h index bcf8975..b8bc72d 100644 --- a/WebKit/qt/WebCoreSupport/ChromeClientQt.h +++ b/WebKit/qt/WebCoreSupport/ChromeClientQt.h @@ -152,7 +152,7 @@ namespace WebCore { virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*); virtual void setNeedsOneShotDrawingSynchronization(); virtual void scheduleCompositingLayerSync(); - virtual CompositingTriggerFlags allowedCompositingTriggers() const; + virtual bool allowsAcceleratedCompositing() const; #endif #if ENABLE(TILED_BACKING_STORE) 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); diff --git a/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h b/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h index 98f2b94..82d9319 100644 --- a/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h +++ b/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h @@ -44,7 +44,6 @@ public: static void executeCoreCommandByName(QWebPage* page, const QString& name, const QString& value); static bool isCommandEnabled(QWebPage* page, const QString& name); - static bool findString(QWebPage* page, const QString& string, const QStringList& optionArray); static void setSmartInsertDeleteEnabled(QWebPage* page, bool enabled); static void setSelectTrailingWhitespaceEnabled(QWebPage* page, bool enabled); static QVariantList selectedRange(QWebPage* page); diff --git a/WebKit/qt/WebCoreSupport/EditorClientQt.cpp b/WebKit/qt/WebCoreSupport/EditorClientQt.cpp index 46eeeb0..91a0cc6 100644 --- a/WebKit/qt/WebCoreSupport/EditorClientQt.cpp +++ b/WebKit/qt/WebCoreSupport/EditorClientQt.cpp @@ -558,7 +558,7 @@ bool EditorClientQt::spellingUIIsShowing() return false; } -void EditorClientQt::getGuessesForWord(const String& word, const String& context, Vector<String>& guesses) +void EditorClientQt::getGuessesForWord(const String&, Vector<String>&) { notImplemented(); } diff --git a/WebKit/qt/WebCoreSupport/EditorClientQt.h b/WebKit/qt/WebCoreSupport/EditorClientQt.h index defa8bb..7d99d22 100644 --- a/WebKit/qt/WebCoreSupport/EditorClientQt.h +++ b/WebKit/qt/WebCoreSupport/EditorClientQt.h @@ -104,7 +104,7 @@ public: virtual void updateSpellingUIWithMisspelledWord(const String&); virtual void showSpellingUI(bool show); virtual bool spellingUIIsShowing(); - virtual void getGuessesForWord(const String& word, const String& context, Vector<String>& guesses); + virtual void getGuessesForWord(const String&, Vector<String>& guesses); virtual void willSetInputMethodState(); virtual void setInputMethodState(bool enabled); |