diff options
Diffstat (limited to 'Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp')
-rw-r--r-- | Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp b/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp index ecd91eb..a7a495a 100644 --- a/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp +++ b/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp @@ -31,6 +31,7 @@ #include "ContextMenuController.h" #include "DeviceOrientation.h" #include "DeviceOrientationClientMockQt.h" +#include "DocumentLoader.h" #include "Editor.h" #include "EditorClientQt.h" #include "Element.h" @@ -885,6 +886,13 @@ QVariantList DumpRenderTreeSupportQt::nodesFromRect(const QWebElement& document, return res; } +QString DumpRenderTreeSupportQt::responseMimeType(QWebFrame* frame) +{ + WebCore::Frame* coreFrame = QWebFramePrivate::core(frame); + WebCore::DocumentLoader* docLoader = coreFrame->loader()->documentLoader(); + return docLoader->responseMIMEType(); +} + // Provide a backward compatibility with previously exported private symbols as of QtWebKit 4.6 release void QWEBKIT_EXPORT qt_resumeActiveDOMObjects(QWebFrame* frame) |