[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

bweinstein at apple.com bweinstein at apple.com
Wed Apr 7 23:06:53 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit 766f70973b249ddf0d6706f94aed712b4a91605d
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