Changeset 201131 in webkit


Ignore:
Timestamp:
May 19, 2016, 1:39:47 AM (9 years ago)
Author:
bshafiei@apple.com
Message:

Merge r200656. rdar://problem/25898256

Location:
branches/safari-602.1.32-branch/Source/WebInspectorUI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-602.1.32-branch/Source/WebInspectorUI/ChangeLog

    r201032 r201131  
     12016-05-19  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r200656. rdar://problem/25898256
     4
     5    2016-05-10  Matt Baker  <mattbaker@apple.com>
     6
     7            Web Inspector: Can't select record bar in Frames timeline
     8            https://bugs.webkit.org/show_bug.cgi?id=156963
     9            <rdar://problem/25898256>
     10
     11            Reviewed by Timothy Hatcher.
     12
     13            Sync record selection between the Rendering Frames grid and overview graph.
     14
     15            * UserInterface/Views/DataGrid.js:
     16            (WebInspector.DataGridNode.prototype.hasAncestor):
     17            Add helper function needed by TimelineView.
     18
     19            * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js:
     20            (WebInspector.RenderingFrameTimelineOverviewGraph.prototype._mouseClicked):
     21            Don't deselect the selected record when clicked. Initially this seemed
     22            like a good idea but it complicates the UI for no added value.
     23
     24            * UserInterface/Views/TimelineRecordingContentView.js:
     25            (WebInspector.TimelineRecordingContentView.prototype._contentViewSelectionPathComponentDidChange):
     26            Get path components from the current TimelineView instead of the
     27            TimelineRecordingContentView, now that the selected record appears
     28            in the bottom ContentBrowser's navigation bar.
     29
    1302016-05-17  Babak Shafiei  <bshafiei@apple.com>
    231
  • branches/safari-602.1.32-branch/Source/WebInspectorUI/UserInterface/Views/DataGrid.js

    r200270 r201131  
    20292029    }
    20302030
     2031    hasAncestor(ancestor)
     2032    {
     2033        if (!ancestor)
     2034            return false;
     2035
     2036        let currentAncestor = this.parent;
     2037        while (currentAncestor) {
     2038            if (ancestor === currentAncestor)
     2039                return true;
     2040
     2041            currentAncestor = currentAncestor.parent;
     2042        }
     2043
     2044        return false;
     2045    }
     2046
    20312047    refresh()
    20322048    {
  • branches/safari-602.1.32-branch/Source/WebInspectorUI/UserInterface/Views/RenderingFrameTimelineOverviewGraph.js

    r198620 r201131  
    260260            return;
    261261
    262         // Clicking the selected frame causes it to be deselected.
    263262        if (this.selectedRecord === newSelectedRecord)
    264             newSelectedRecord = null;
     263            return;
    265264
    266265        if (frameIndex >= this.timelineOverview.selectionStartTime && frameIndex < this.timelineOverview.selectionStartTime + this.timelineOverview.selectionDuration) {
  • branches/safari-602.1.32-branch/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js

    r201007 r201131  
    326326            return;
    327327
    328         var recordPathComponent = this.selectionPathComponents.find(function(element) { return element.representedObject instanceof WebInspector.TimelineRecord; });
    329         var record = recordPathComponent ? recordPathComponent.representedObject : null;
     328        let record = null;
     329        if (this.currentTimelineView.selectionPathComponents) {
     330            let recordPathComponent = this.currentTimelineView.selectionPathComponents.find((element) => element.representedObject instanceof WebInspector.TimelineRecord);
     331            record = recordPathComponent ? recordPathComponent.representedObject : null;
     332        }
     333
    330334        this._timelineOverview.selectRecord(event.target.representedObject, record);
    331335    }
Note: See TracChangeset for help on using the changeset viewer.