[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da

loislo at chromium.org loislo at chromium.org
Wed Dec 22 18:11:24 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit ff10263609b8fea8bf4edeab7ed7cb6171b0576c
Author: loislo at chromium.org <loislo at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Dec 8 16:54:10 2010 +0000

    2010-12-08  Ilya Tikhonovsky  <loislo at chromium.org>
    
            Reviewed by Yury Semikhatsky.
    
            Web Inspector: Protocol cleanup task. Remove WebInspector wrappers
            for TimelineAgent functions.
    
            https://bugs.webkit.org/show_bug.cgi?id=50690
    
            * inspector/Inspector.idl:
            * inspector/front-end/TimelineAgent.js:
            * inspector/front-end/TimelinePanel.js:
            (WebInspector.TimelinePanel):
            (WebInspector.TimelinePanel.prototype.timelineProfilerWasStarted):
            (WebInspector.TimelinePanel.prototype.timelineProfilerWasStopped):
    
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73524 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 14e1b3f..cd68dad 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,19 @@
+2010-12-08  Ilya Tikhonovsky  <loislo at chromium.org>
+
+        Reviewed by Yury Semikhatsky.
+
+        Web Inspector: Protocol cleanup task. Remove WebInspector wrappers
+        for TimelineAgent functions.
+
+        https://bugs.webkit.org/show_bug.cgi?id=50690
+
+        * inspector/Inspector.idl:
+        * inspector/front-end/TimelineAgent.js:
+        * inspector/front-end/TimelinePanel.js:
+        (WebInspector.TimelinePanel):
+        (WebInspector.TimelinePanel.prototype.timelineProfilerWasStarted):
+        (WebInspector.TimelinePanel.prototype.timelineProfilerWasStopped):
+
 2010-12-08  Philippe Normand  <pnormand at igalia.com>
 
         Reviewed by Gustavo Noronha Silva.
diff --git a/WebCore/inspector/Inspector.idl b/WebCore/inspector/Inspector.idl
index 68a1b41..932fa90 100644
--- a/WebCore/inspector/Inspector.idl
+++ b/WebCore/inspector/Inspector.idl
@@ -32,7 +32,7 @@
 
 module core {
     interface [Conditional=INSPECTOR] Inspector {
-        [notify] void addRecordToTimeline(out Object record);
+        [notify, domain=Timeline] void addRecordToTimeline(out Object record);
         [notify] void addNodesToSearchResult(out Array nodeIds);
         [notify, domain=DOM] void attributesUpdated(out long id, out Array attributes);
         [notify] void bringToFront();
@@ -52,8 +52,8 @@ module core {
         [notify, domain=DOM] void setDetachedRoot(out Object root);
         [notify, domain=DOM] void setDocument(out Value root);
         [notify] void showPanel(out String panel);
-        [notify] void timelineProfilerWasStarted();
-        [notify] void timelineProfilerWasStopped();
+        [notify, domain=Timeline] void timelineProfilerWasStarted();
+        [notify, domain=Timeline] void timelineProfilerWasStopped();
         [notify] void updateFocusedNode(out long nodeId);
 
 #if defined(ENABLE_JAVASCRIPT_DEBUGGER) && ENABLE_JAVASCRIPT_DEBUGGER
diff --git a/WebCore/inspector/front-end/TimelineAgent.js b/WebCore/inspector/front-end/TimelineAgent.js
index d44c2d0..97b8e42 100644
--- a/WebCore/inspector/front-end/TimelineAgent.js
+++ b/WebCore/inspector/front-end/TimelineAgent.js
@@ -56,18 +56,3 @@ WebInspector.TimelineAgent.RecordType = {
     MarkLoadEventType : 19,
     ScheduleResourceRequest : 20
 };
-
-WebInspector.addRecordToTimeline = function(record) {
-    if (WebInspector.panels.timeline)
-        WebInspector.panels.timeline.addRecordToTimeline(record);
-}
-
-WebInspector.timelineProfilerWasStarted = function() {
-    if (WebInspector.panels.timeline)
-        WebInspector.panels.timeline.timelineWasStarted();
-}
-
-WebInspector.timelineProfilerWasStopped = function() {
-    if (WebInspector.panels.timeline)
-        WebInspector.panels.timeline.timelineWasStopped();
-}
diff --git a/WebCore/inspector/front-end/TimelinePanel.js b/WebCore/inspector/front-end/TimelinePanel.js
index 16eb4d7..a661b75 100644
--- a/WebCore/inspector/front-end/TimelinePanel.js
+++ b/WebCore/inspector/front-end/TimelinePanel.js
@@ -98,6 +98,8 @@ WebInspector.TimelinePanel = function()
     this._calculator._showShortEvents = this.toggleFilterButton.toggled;
     this._markTimelineRecords = [];
     this._expandOffset = 15;
+
+    InspectorBackend.registerDomainDispatcher("Timeline", this);
 }
 
 // Define row height, should be in sync with styles for timeline graphs.
@@ -283,12 +285,12 @@ WebInspector.TimelinePanel.prototype = {
         this._scheduleRefresh(true);
     },
 
-    timelineWasStarted: function()
+    timelineProfilerWasStarted: function()
     {
         this.toggleTimelineButton.toggled = true;
     },
 
-    timelineWasStopped: function()
+    timelineProfilerWasStopped: function()
     {
         this.toggleTimelineButton.toggled = false;
     },

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list