[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.16-1409-g5afdf4d

bweinstein at apple.com bweinstein at apple.com
Thu Dec 3 13:19:34 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit 58d316ad7110f6efad3f11511cd52af4f7771719
Author: bweinstein at apple.com <bweinstein at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Oct 26 21:50:41 2009 +0000

    Fixes <http://webkit.org/b/30792>.
    Web Inspector: When changing resource scope, resource graph can get in weird state.
    
    Reviewed by Timothy Hatcher.
    
    If the user was scrolled down while looking at All resources, and then just
    selects Fonts, or something that doesn't have many resources, then the graph
    will stay scrolled down, even when there is no content there.
    
    When the filter is updated, scroll to the top of the graph view, so this won't
    happen.
    
    * inspector/front-end/AbstractTimelinePanel.js:
    (WebInspector.AbstractTimelinePanel.prototype._updateFilter):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50098 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index f226e6a..00b0eb1 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2009-10-26  Brian Weinstein  <bweinstein at apple.com>
+
+        Reviewed by Timothy Hatcher.
+
+        Fixes <http://webkit.org/b/30792>.
+        Web Inspector: When changing resource scope, resource graph can get in weird state.
+        
+        If the user was scrolled down while looking at All resources, and then just
+        selects Fonts, or something that doesn't have many resources, then the graph
+        will stay scrolled down, even when there is no content there.
+        
+        When the filter is updated, scroll to the top of the graph view, so this won't
+        happen.
+
+        * inspector/front-end/AbstractTimelinePanel.js:
+        (WebInspector.AbstractTimelinePanel.prototype._updateFilter):
+
 2009-10-26  Sam Weinig  <sam at webkit.org>
 
         Fix mac clean build.
diff --git a/WebCore/inspector/front-end/AbstractTimelinePanel.js b/WebCore/inspector/front-end/AbstractTimelinePanel.js
index e9e0ad1..72ff8c0 100644
--- a/WebCore/inspector/front-end/AbstractTimelinePanel.js
+++ b/WebCore/inspector/front-end/AbstractTimelinePanel.js
@@ -164,6 +164,10 @@ WebInspector.AbstractTimelinePanel.prototype = {
             selectMultiple = true;
 
         this.filter(e.target, selectMultiple);
+
+        // When we are updating our filtering, scroll to the top so we don't end up
+        // in blank graph under all the resources.
+        this.containerElement.scrollTop = 0;
     },
 
     _createGraph: function()

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list