[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.21-584-g1e41756

eric at webkit.org eric at webkit.org
Fri Feb 26 22:19:52 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit a1bfa94b455d1d33f2b0a8fd14bd958e9f578f97
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Feb 15 10:56:15 2010 +0000

    2010-02-15  Robert Hogan  <robert at roberthogan.net>
    
            Reviewed by Simon Hausmann.
    
            [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
    
            Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
    
            https://bugs.webkit.org/show_bug.cgi?id=33096
    
            This allows the following tests to pass:
    
            inspector/console-format-collections.html
            inspector/styles-iframe.html
            inspector/syntax-highlight-css.html
            inspector/syntax-highlight-javascript.html
            inspector/timeline-enum-stability.html
            inspector/timeline-layout.html
            inspector/timeline-mark-timeline.html
            inspector/timeline-paint.html
            inspector/timeline-parse-html.html
            inspector/timeline-recalculate-styles.html
            inspector/timeline-script-tag-1.html
            inspector/timeline-script-tag-2.html
            inspector/timeline-trivial.html
            inspector/cookie-resource-match.html
            inspector/elements-img-tooltip.html
            inspector/elements-panel-selection-on-refresh.html
            inspector/inspected-objects-not-overriden.html
            inspector/timeline-event-dispatch.html
            inspector/timeline-network-resource.html
            inspector/elements-panel-rewrite-href.html
            inspector/console-dir.html
            inspector/console-dirxml.html
            inspector/console-format.html
            inspector/console-tests.html
            inspector/elements-panel-structure.html
            inspector/evaluate-in-frontend.html
            inspector/console-clear.html
    
            * platform/qt/Skipped:
    2010-02-15  Robert Hogan  <robert at roberthogan.net>, Jocelyn Turcotte  <jocelyn.turcotte at nokia.com>
    
            Reviewed by Simon Hausmann.
    
            [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
    
            Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
    
            https://bugs.webkit.org/show_bug.cgi?id=33096
    
            This allows the following tests to pass:
    
            inspector/console-format-collections.html
            inspector/styles-iframe.html
            inspector/syntax-highlight-css.html
            inspector/syntax-highlight-javascript.html
            inspector/timeline-enum-stability.html
            inspector/timeline-layout.html
            inspector/timeline-mark-timeline.html
            inspector/timeline-paint.html
            inspector/timeline-parse-html.html
            inspector/timeline-recalculate-styles.html
            inspector/timeline-script-tag-1.html
            inspector/timeline-script-tag-2.html
            inspector/timeline-trivial.html
            inspector/cookie-resource-match.html
            inspector/elements-img-tooltip.html
            inspector/elements-panel-selection-on-refresh.html
            inspector/inspected-objects-not-overriden.html
            inspector/timeline-event-dispatch.html
            inspector/timeline-network-resource.html
            inspector/elements-panel-rewrite-href.html
            inspector/console-dir.html
            inspector/console-dirxml.html
            inspector/console-format.html
            inspector/console-tests.html
            inspector/elements-panel-structure.html
            inspector/evaluate-in-frontend.html
            inspector/console-clear.html
    
            * Api/qwebpage.cpp:
            (qt_drt_webinspector_executeScript):
            (qt_drt_webinspector_close):
            (qt_drt_webinspector_show):
            (qt_drt_setTimelineProfilingEnabled):
    
            * WebCoreSupport/InspectorClientQt.cpp:
            (InspectorClientQt::createPage)
    2010-02-15  Robert Hogan  <robert at roberthogan.net>
    
            Reviewed by Simon Hausmann.
    
            [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
    
            Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
    
            https://bugs.webkit.org/show_bug.cgi?id=33096
    
            This allows the following tests to pass:
    
            inspector/console-format-collections.html
            inspector/styles-iframe.html
            inspector/syntax-highlight-css.html
            inspector/syntax-highlight-javascript.html
            inspector/timeline-enum-stability.html
            inspector/timeline-layout.html
            inspector/timeline-mark-timeline.html
            inspector/timeline-paint.html
            inspector/timeline-parse-html.html
            inspector/timeline-recalculate-styles.html
            inspector/timeline-script-tag-1.html
            inspector/timeline-script-tag-2.html
            inspector/timeline-trivial.html
            inspector/cookie-resource-match.html
            inspector/elements-img-tooltip.html
            inspector/elements-panel-selection-on-refresh.html
            inspector/inspected-objects-not-overriden.html
            inspector/timeline-event-dispatch.html
            inspector/timeline-network-resource.html
            inspector/elements-panel-rewrite-href.html
            inspector/console-dir.html
            inspector/console-dirxml.html
            inspector/console-format.html
            inspector/console-tests.html
            inspector/elements-panel-structure.html
            inspector/evaluate-in-frontend.html
            inspector/console-clear.html
    
            * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
            (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):
            (WebCore::isWebInspectorTest):
            (WebCore::DumpRenderTree::open):
            * DumpRenderTree/qt/DumpRenderTreeQt.h:
            (WebCore::DumpRenderTree::display):
            * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
            (LayoutTestController::closeWebInspector):
            (LayoutTestController::showWebInspector):
            (LayoutTestController::evaluateInWebInspector):
            (LayoutTestController::setTimelineProfilingEnabled):
            (LayoutTestController::display):
            * DumpRenderTree/qt/LayoutTestControllerQt.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54772 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 79ae0ea..5a06588 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,45 @@
+2010-02-15  Robert Hogan  <robert at roberthogan.net>
+
+        Reviewed by Simon Hausmann.
+
+        [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
+
+        Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
+
+        https://bugs.webkit.org/show_bug.cgi?id=33096
+
+        This allows the following tests to pass:
+
+        inspector/console-format-collections.html
+        inspector/styles-iframe.html
+        inspector/syntax-highlight-css.html
+        inspector/syntax-highlight-javascript.html
+        inspector/timeline-enum-stability.html
+        inspector/timeline-layout.html
+        inspector/timeline-mark-timeline.html
+        inspector/timeline-paint.html
+        inspector/timeline-parse-html.html
+        inspector/timeline-recalculate-styles.html
+        inspector/timeline-script-tag-1.html
+        inspector/timeline-script-tag-2.html
+        inspector/timeline-trivial.html
+        inspector/cookie-resource-match.html
+        inspector/elements-img-tooltip.html
+        inspector/elements-panel-selection-on-refresh.html
+        inspector/inspected-objects-not-overriden.html
+        inspector/timeline-event-dispatch.html
+        inspector/timeline-network-resource.html
+        inspector/elements-panel-rewrite-href.html
+        inspector/console-dir.html
+        inspector/console-dirxml.html
+        inspector/console-format.html
+        inspector/console-tests.html
+        inspector/elements-panel-structure.html
+        inspector/evaluate-in-frontend.html
+        inspector/console-clear.html
+
+        * platform/qt/Skipped:
+
 2010-02-14  Pavel Feldman  <pfeldman at chromium.org>
 
         Reviewed by Timothy Hatcher.
diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped
index b20374b..d5484aa 100644
--- a/LayoutTests/platform/qt/Skipped
+++ b/LayoutTests/platform/qt/Skipped
@@ -158,21 +158,6 @@ http/tests/security/local-video-source-from-remote.html
 #            Missing features in our DumpRenderTree implementation              #
 # ============================================================================= #
 
-# Missing layoutTestController.showWebInspector()
-inspector/console-format-collections.html
-inspector/styles-iframe.html
-inspector/syntax-highlight-css.html
-inspector/syntax-highlight-javascript.html
-inspector/timeline-enum-stability.html
-inspector/timeline-layout.html
-inspector/timeline-mark-timeline.html
-inspector/timeline-paint.html
-inspector/timeline-parse-html.html
-inspector/timeline-recalculate-styles.html
-inspector/timeline-script-tag-1.html
-inspector/timeline-script-tag-2.html
-inspector/timeline-trivial.html
-
 # Missing textInputController.selectedRange()
 editing/selection/5825350-1.html
 editing/selection/5825350-2.html
@@ -230,17 +215,6 @@ http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.htm
 
 http/tests/cache/subresource-failover-to-network.html
 
-# Missing layoutTestController.evaluateInWebInspector()
-# https://bugs.webkit.org/show_bug.cgi?id=33096
-http/tests/inspector/inspect-iframe-from-different-domain.html
-inspector/cookie-resource-match.html
-inspector/elements-img-tooltip.html
-inspector/elements-panel-selection-on-refresh.html
-inspector/inspected-objects-not-overriden.html
-inspector/timeline-event-dispatch.html
-inspector/timeline-network-resource.html
-inspector/elements-panel-rewrite-href.html
-
 # Missing layoutTestController.setSmartInsertDeleteEnabled()
 editing/selection/doubleclick-beside-cr-span.html
 
@@ -4864,15 +4838,6 @@ fast/dom/Window/slow-unload-handler-only-frame-is-stopped.html
 # This port doesn't have a global history delegate yet
 http/tests/globalhistory
 
-# Skip inspector tests
-inspector/console-dir.html
-inspector/console-dirxml.html
-inspector/console-format.html
-inspector/console-log-before-inspector-open.html
-inspector/console-tests.html
-inspector/elements-panel-structure.html
-inspector/evaluate-in-frontend.html
-
 # Skip xmlhttprequest tests - NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests.
 http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html
 http/tests/xmlhttprequest/access-control-basic-get-fail-non-simple.html
@@ -5002,7 +4967,6 @@ fast/css/namespaces/namespaces-empty.xml
 # https://bugs.webkit.org/show_bug.cgi?id=31626
 fast/dom/javascript-url-crash-function.html
 fast/dom/location-new-window-no-crash.html
-inspector/console-clear.html
 http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-window-open.html
 
 # This test requires ogg codecs
diff --git a/WebKit/qt/Api/qwebpage.cpp b/WebKit/qt/Api/qwebpage.cpp
index f661918..185a2ee 100644
--- a/WebKit/qt/Api/qwebpage.cpp
+++ b/WebKit/qt/Api/qwebpage.cpp
@@ -161,6 +161,38 @@ QString QWEBKIT_EXPORT qt_webpage_groupName(QWebPage* page)
     return page->handle()->page->groupName();
 }
 
+void QWEBKIT_EXPORT qt_drt_webinspector_executeScript(QWebPage* page, long callId, const QString& script)
+{
+    if (!page->handle()->page->inspectorController())
+        return;
+    page->handle()->page->inspectorController()->evaluateForTestInFrontend(callId, script);
+}
+
+void QWEBKIT_EXPORT qt_drt_webinspector_close(QWebPage* page)
+{
+    if (!page->handle()->page->inspectorController())
+        return;
+    page->handle()->page->inspectorController()->close();
+}
+
+void QWEBKIT_EXPORT qt_drt_webinspector_show(QWebPage* page)
+{
+    if (!page->handle()->page->inspectorController())
+        return;
+    page->handle()->page->inspectorController()->show();
+}
+
+void QWEBKIT_EXPORT qt_drt_setTimelineProfilingEnabled(QWebPage* page, bool enabled)
+{
+    InspectorController* controller = page->handle()->page->inspectorController();
+    if (!controller)
+        return;
+    if (enabled)
+        controller->startTimelineProfiler();
+    else
+        controller->stopTimelineProfiler();
+}
+
 class QWebPageWidgetClient : public QWebPageClient {
 public:
     QWebPageWidgetClient(QWidget* view)
diff --git a/WebKit/qt/ChangeLog b/WebKit/qt/ChangeLog
index e1e2bc8..4d33f7b 100644
--- a/WebKit/qt/ChangeLog
+++ b/WebKit/qt/ChangeLog
@@ -1,3 +1,52 @@
+2010-02-15  Robert Hogan  <robert at roberthogan.net>, Jocelyn Turcotte  <jocelyn.turcotte at nokia.com>
+
+        Reviewed by Simon Hausmann.
+
+        [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
+
+        Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
+
+        https://bugs.webkit.org/show_bug.cgi?id=33096
+
+        This allows the following tests to pass:
+
+        inspector/console-format-collections.html
+        inspector/styles-iframe.html
+        inspector/syntax-highlight-css.html
+        inspector/syntax-highlight-javascript.html
+        inspector/timeline-enum-stability.html
+        inspector/timeline-layout.html
+        inspector/timeline-mark-timeline.html
+        inspector/timeline-paint.html
+        inspector/timeline-parse-html.html
+        inspector/timeline-recalculate-styles.html
+        inspector/timeline-script-tag-1.html
+        inspector/timeline-script-tag-2.html
+        inspector/timeline-trivial.html
+        inspector/cookie-resource-match.html
+        inspector/elements-img-tooltip.html
+        inspector/elements-panel-selection-on-refresh.html
+        inspector/inspected-objects-not-overriden.html
+        inspector/timeline-event-dispatch.html
+        inspector/timeline-network-resource.html
+        inspector/elements-panel-rewrite-href.html
+        inspector/console-dir.html
+        inspector/console-dirxml.html
+        inspector/console-format.html
+        inspector/console-tests.html
+        inspector/elements-panel-structure.html
+        inspector/evaluate-in-frontend.html
+        inspector/console-clear.html
+
+        * Api/qwebpage.cpp:
+        (qt_drt_webinspector_executeScript):
+        (qt_drt_webinspector_close):
+        (qt_drt_webinspector_show):
+        (qt_drt_setTimelineProfilingEnabled):
+
+        * WebCoreSupport/InspectorClientQt.cpp:
+        (InspectorClientQt::createPage)
+
 2010-02-12  Antti Koivisto  <koivisto at iki.fi>
 
         Reviewed by Kenneth Rohde Christiansen and Simon Hausmann.
diff --git a/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp b/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp
index 4927ea8..5f343ff 100644
--- a/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp
+++ b/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp
@@ -83,16 +83,19 @@ void InspectorClientQt::inspectorDestroyed()
 
 Page* InspectorClientQt::createPage()
 {
-    QWebView* inspectorView = new QWebView;
-    InspectorClientWebPage* inspectorPage = new InspectorClientWebPage(inspectorView);
-    inspectorView->setPage(inspectorPage);
-    m_inspectorView.set(inspectorView);
+    QWebView* inspectorView = m_inspectorView.get();
+    if (!inspectorView) {
+        inspectorView = new QWebView;
+        InspectorClientWebPage* inspectorPage = new InspectorClientWebPage(inspectorView);
+        inspectorView->setPage(inspectorPage);
+        m_inspectorView.set(inspectorView);
+    }
 
-    inspectorPage->mainFrame()->load(QString::fromLatin1("qrc:/webkit/inspector/inspector.html"));
+    inspectorView->page()->mainFrame()->load(QString::fromLatin1("qrc:/webkit/inspector/inspector.html"));
     m_inspectedWebPage->d->inspectorFrontend = inspectorView;
     m_inspectedWebPage->d->getOrCreateInspector()->d->setFrontend(inspectorView);
 
-    return m_inspectorView->page()->d->page;
+    return inspectorView->page()->d->page;
 }
 
 String InspectorClientQt::localizedStringsURL()
diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog
index 693a568..2d88397 100644
--- a/WebKitTools/ChangeLog
+++ b/WebKitTools/ChangeLog
@@ -1,3 +1,57 @@
+2010-02-15  Robert Hogan  <robert at roberthogan.net>
+
+        Reviewed by Simon Hausmann.
+
+        [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
+
+        Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
+
+        https://bugs.webkit.org/show_bug.cgi?id=33096
+
+        This allows the following tests to pass:
+
+        inspector/console-format-collections.html
+        inspector/styles-iframe.html
+        inspector/syntax-highlight-css.html
+        inspector/syntax-highlight-javascript.html
+        inspector/timeline-enum-stability.html
+        inspector/timeline-layout.html
+        inspector/timeline-mark-timeline.html
+        inspector/timeline-paint.html
+        inspector/timeline-parse-html.html
+        inspector/timeline-recalculate-styles.html
+        inspector/timeline-script-tag-1.html
+        inspector/timeline-script-tag-2.html
+        inspector/timeline-trivial.html
+        inspector/cookie-resource-match.html
+        inspector/elements-img-tooltip.html
+        inspector/elements-panel-selection-on-refresh.html
+        inspector/inspected-objects-not-overriden.html
+        inspector/timeline-event-dispatch.html
+        inspector/timeline-network-resource.html
+        inspector/elements-panel-rewrite-href.html
+        inspector/console-dir.html
+        inspector/console-dirxml.html
+        inspector/console-format.html
+        inspector/console-tests.html
+        inspector/elements-panel-structure.html
+        inspector/evaluate-in-frontend.html
+        inspector/console-clear.html
+
+        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
+        (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):
+        (WebCore::isWebInspectorTest):
+        (WebCore::DumpRenderTree::open):
+        * DumpRenderTree/qt/DumpRenderTreeQt.h:
+        (WebCore::DumpRenderTree::display):
+        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
+        (LayoutTestController::closeWebInspector):
+        (LayoutTestController::showWebInspector):
+        (LayoutTestController::evaluateInWebInspector):
+        (LayoutTestController::setTimelineProfilingEnabled):
+        (LayoutTestController::display):
+        * DumpRenderTree/qt/LayoutTestControllerQt.h:
+
 2010-02-14  Dirk Pranke  <dpranke at chromium.org>
 
         Reviewed by Eric Seidel.
diff --git a/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp b/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
index 69c5bad..5bc7303 100644
--- a/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
+++ b/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
@@ -412,10 +412,23 @@ void DumpRenderTree::resetToConsistentStateBeforeTesting()
     setlocale(LC_ALL, "");
 }
 
+static bool isWebInspectorTest(const QUrl& url)
+{
+    if (url.path().contains("inspector/"))
+        return true;
+    return false;
+}
+
 void DumpRenderTree::open(const QUrl& url)
 {
     resetToConsistentStateBeforeTesting();
 
+    if (isWebInspectorTest(m_page->mainFrame()->url()))
+        layoutTestController()->closeWebInspector();
+
+    if (isWebInspectorTest(url))
+        layoutTestController()->showWebInspector();
+
     // W3C SVG tests expect to be 480x360
     bool isW3CTest = url.toString().contains("svg/W3C-SVG-1.1");
     int width = isW3CTest ? 480 : maxViewWidth;
diff --git a/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.h b/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.h
index 00d7ae4..8d80f87 100644
--- a/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.h
+++ b/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.h
@@ -158,6 +158,7 @@ public:
     WebPage(QObject* parent, DumpRenderTree*);
     virtual ~WebPage();
     QWebInspector* webInspector();
+    void closeWebInspector();
 
     QWebPage *createWindow(QWebPage::WebWindowType);
 
diff --git a/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp b/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
index 51c1181..ac13afe 100644
--- a/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
+++ b/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
@@ -41,6 +41,7 @@ extern void qt_dump_frame_loader(bool b);
 extern void qt_dump_resource_load_callbacks(bool b);
 extern void qt_drt_setFrameSetFlatteningEnabled(QWebPage*, bool);
 extern void qt_drt_setJavaScriptProfilingEnabled(QWebFrame*, bool enabled);
+extern void qt_drt_setTimelineProfilingEnabled(QWebPage*, bool enabled);
 extern bool qt_drt_pauseAnimation(QWebFrame*, const QString& name, double time, const QString& elementId);
 extern bool qt_drt_pauseTransitionOfProperty(QWebFrame*, const QString& name, double time, const QString& elementId);
 extern bool qt_drt_pauseSVGAnimation(QWebFrame*, const QString& animationId, double time, const QString& elementId);
@@ -51,6 +52,9 @@ extern void qt_drt_whiteListAccessFromOrigin(const QString& sourceOrigin, const
 extern QString qt_drt_counterValueForElementById(QWebFrame* qFrame, const QString& id);
 extern int qt_drt_workerThreadCount();
 extern int qt_drt_pageNumberForElementById(QWebFrame* qFrame, const QString& id, float width, float height);
+extern void qt_drt_webinspector_executeScript(QWebPage* page, long callId, const QString& script);
+extern void qt_drt_webinspector_show(QWebPage *page);
+extern void qt_drt_webinspector_close(QWebPage *page);
 
 LayoutTestController::LayoutTestController(WebCore::DumpRenderTree* drt)
     : QObject()
@@ -285,15 +289,22 @@ QString LayoutTestController::decodeHostName(const QString& host)
     return decoded;
 }
 
+
+void LayoutTestController::closeWebInspector()
+{
+    qt_drt_webinspector_close(m_drt->webPage());
+    m_drt->webPage()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, false);
+}
+
 void LayoutTestController::showWebInspector()
 {
     m_drt->webPage()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
-    m_drt->webPage()->webInspector()->show();
+    qt_drt_webinspector_show(m_drt->webPage());
 }
 
-void LayoutTestController::hideWebInspector()
+void LayoutTestController::evaluateInWebInspector(long callId, const QString& script)
 {
-    m_drt->webPage()->webInspector()->hide();
+    qt_drt_webinspector_executeScript(m_drt->webPage(), callId, script);
 }
 
 void LayoutTestController::setFrameSetFlatteningEnabled(bool enabled)
@@ -312,6 +323,11 @@ void LayoutTestController::setJavaScriptProfilingEnabled(bool enable)
     qt_drt_setJavaScriptProfilingEnabled(m_topLoadingFrame, enable);
 }
 
+void LayoutTestController::setTimelineProfilingEnabled(bool enable)
+{
+    qt_drt_setTimelineProfilingEnabled(m_drt->webPage(), enable);
+}
+
 void LayoutTestController::setFixedContentsSize(int width, int height)
 {
     m_topLoadingFrame->page()->setPreferredContentsSize(QSize(width, height));
diff --git a/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h b/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
index 64cbcc9..18d0648 100644
--- a/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
+++ b/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
@@ -115,11 +115,13 @@ public slots:
     QString decodeHostName(const QString& host);
     void dumpSelectionRect() const {}
     void showWebInspector();
-    void hideWebInspector();
+    void closeWebInspector();
+    void evaluateInWebInspector(long callId, const QString& script);
 
     void setFrameSetFlatteningEnabled(bool enable);
     void setAllowUniversalAccessFromFileURLs(bool enable);
     void setJavaScriptProfilingEnabled(bool enable);
+    void setTimelineProfilingEnabled(bool enable);
     void setFixedContentsSize(int width, int height);
     void setPrivateBrowsingEnabled(bool enable);
     void setPopupBlockingEnabled(bool enable);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list