#include "ApplicationCacheStorage.h"
#include "CSSComputedStyleDeclaration.h"
#include "ChromeClientQt.h"
+#include "ContainerNode.h"
#include "ContextMenu.h"
#include "ContextMenuClientQt.h"
#include "ContextMenuController.h"
#include "qwebpage_p.h"
#include "qwebscriptworld.h"
-#if ENABLE(VIDEO) && ENABLE(QT_MULTIMEDIA)
+#if ENABLE(VIDEO) && USE(QT_MULTIMEDIA)
#include "HTMLVideoElement.h"
#include "MediaPlayerPrivateQt.h"
#endif
#endif
}
+int DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests(QWebPage* page)
+{
+#if ENABLE(CLIENT_BASED_GEOLOCATION)
+ Page* corePage = QWebPagePrivate::core(page);
+ GeolocationClientMock* mockClient = toGeolocationClientMock(corePage->geolocationController()->client());
+ return mockClient->numberOfPendingPermissionRequests();
+#else
+ return -1;
+#endif
+}
+
bool DumpRenderTreeSupportQt::isTargetItem(const QWebHistoryItem& historyItem)
{
QWebHistoryItem it = historyItem;
{
QUrl res;
-#if ENABLE(VIDEO) && ENABLE(QT_MULTIMEDIA)
+#if ENABLE(VIDEO) && USE(QT_MULTIMEDIA)
Frame* coreFrame = QWebFramePrivate::core(frame);
if (!coreFrame)
return res;
coreFrame->loader()->load(request, substituteData, false);
}
+QVariant DumpRenderTreeSupportQt::shadowRoot(const QWebElement& element)
+{
+ WebCore::Element* webElement = element.m_element;
+ if (!webElement)
+ return QVariant();
+
+ ContainerNode* webShadowRoot = webElement->shadowRoot();
+ if (!webShadowRoot)
+ return QVariant();
+
+ return QVariant::fromValue(QDRTNode(webShadowRoot));
+}
+
// Provide a backward compatibility with previously exported private symbols as of QtWebKit 4.6 release
void QWEBKIT_EXPORT qt_resumeActiveDOMObjects(QWebFrame* frame)