⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267360 in webkit


Ignore:
Timestamp:
Sep 21, 2020, 1:08:53 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Timelines: remove "stop requested" marker
https://bugs.webkit.org/show_bug.cgi?id=216423

Patch by Patrick Angle <Patrick Angle> on 2020-09-21
Reviewed by Devin Rousso.

Removed the "Stop Requested" timeline marker, which was made unneccesary in r267038 which makes the recording
head marker stop at the moment the stop was requested, even if more time is required to complete the processing
of incoming data.

  • UserInterface/Models/TimelineMarker.js:
  • UserInterface/Views/TimelineOverview.js:

(WI.TimelineOverview):
(WI.TimelineOverview.prototype._recordingReset):
(WI.TimelineOverview.prototype._handleTimelineCapturingStateChanged):

  • UserInterface/Views/TimelineRuler.css:

(.timeline-ruler > .markers > .marker.current-time::after):
(.timeline-ruler > .markers > .marker.stopping-time): Deleted.
(.timeline-ruler > .markers > .marker:matches(.stopping-time, .current-time)::after): Deleted.
(@media (prefers-color-scheme: dark) .timeline-ruler > .markers > .marker.stopping-time): Deleted.

  • UserInterface/Views/TimelineRuler.js:

(WI.TimelineRuler.prototype.addMarker):

Location:
trunk/Source/WebInspectorUI
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r267038 r267360  
     12020-09-21  Patrick Angle  <pangle@apple.com>
     2
     3        Web Inspector: Timelines: remove "stop requested" marker
     4        https://bugs.webkit.org/show_bug.cgi?id=216423
     5
     6        Reviewed by Devin Rousso.
     7
     8        Removed the "Stop Requested" timeline marker, which was made unneccesary in r267038 which makes the recording
     9        head marker stop at the moment the stop was requested, even if more time is required to complete the processing
     10        of incoming data.
     11
     12        * UserInterface/Models/TimelineMarker.js:
     13        * UserInterface/Views/TimelineOverview.js:
     14        (WI.TimelineOverview):
     15        (WI.TimelineOverview.prototype._recordingReset):
     16        (WI.TimelineOverview.prototype._handleTimelineCapturingStateChanged):
     17        * UserInterface/Views/TimelineRuler.css:
     18        (.timeline-ruler > .markers > .marker.current-time::after):
     19        (.timeline-ruler > .markers > .marker.stopping-time): Deleted.
     20        (.timeline-ruler > .markers > .marker:matches(.stopping-time, .current-time)::after): Deleted.
     21        (@media (prefers-color-scheme: dark) .timeline-ruler > .markers > .marker.stopping-time): Deleted.
     22        * UserInterface/Views/TimelineRuler.js:
     23        (WI.TimelineRuler.prototype.addMarker):
     24
    1252020-09-14  Patrick Angle  <pangle@apple.com>
    226
  • trunk/Source/WebInspectorUI/UserInterface/Models/TimelineMarker.js

    r252199 r267360  
    8484
    8585WI.TimelineMarker.Type = {
    86     StoppingTime: "stopping-time",
    8786    CurrentTime: "current-time",
    8887    LoadEvent: "load-event",
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js

    r261108 r267360  
    8484        this.addSubview(this._timelineRuler);
    8585
    86         this._stoppingTimeMarker = null;
    8786        this._currentTimeMarker = new WI.TimelineMarker(0, WI.TimelineMarker.Type.CurrentTime);
    8887        this._timelineRuler.addMarker(this._currentTimeMarker);
     
    817816
    818817        this._timelineRuler.addMarker(this._currentTimeMarker);
    819 
    820         if (this._stoppingTimeMarker) {
    821             this._stoppingTimeMarker.time = -1; // Hide the marker.
    822             this._timelineRuler.addMarker(this._stoppingTimeMarker);
    823         }
    824818    }
    825819
     
    10351029    {
    10361030        switch (WI.timelineManager.capturingState) {
    1037         case WI.TimelineManager.CapturingState.Starting:
    1038             if (this._stoppingTimeMarker)
    1039                 this._stoppingTimeMarker.time = -1; // Hide the marker when capturing resumes.
    1040             break;
    1041 
    10421031        case WI.TimelineManager.CapturingState.Active:
    10431032            this._editInstrumentsButton.enabled = false;
    10441033            this._stopEditingInstruments();
    1045             break;
    1046 
    1047         case WI.TimelineManager.CapturingState.Stopping:
    1048             if (!this._stoppingTimeMarker) {
    1049                 this._stoppingTimeMarker = new WI.TimelineMarker(this._currentTime, WI.TimelineMarker.Type.StoppingTime);
    1050                 this._timelineRuler.addMarker(this._stoppingTimeMarker);
    1051             } else
    1052                 this._stoppingTimeMarker.time = this._currentTime;
    10531034            break;
    10541035
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRuler.css

    r265237 r267360  
    175175}
    176176
    177 .timeline-ruler > .markers > .marker.stopping-time {
    178     color: hsl(0, 0%, 75%);
    179 }
    180 
    181177.timeline-ruler > .markers > .marker.current-time {
    182178    z-index: var(--timeline-current-time-z-index);
     
    184180}
    185181
    186 .timeline-ruler > .markers > .marker:matches(.stopping-time, .current-time)::after {
     182.timeline-ruler > .markers > .marker.current-time::after {
    187183    top: var(--timeline-ruler-marker-after-offset);
    188184    width: var(--timeline-ruler-marker-after-size);
     
    295291
    296292@media (prefers-color-scheme: dark) {
    297     .timeline-ruler > .markers > .marker.stopping-time {
    298         color: lightgrey;
    299     }
    300 
    301293    .timeline-ruler > .markers > .marker.dom-content-event {
    302294        color: hsl(240, 100%, 70%);
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js

    r252199 r267360  
    349349
    350350        switch (marker.type) {
    351         case WI.TimelineMarker.Type.StoppingTime:
    352             markerElement.title = WI.UIString("Recording stop requested \u2014 %s").format(Number.secondsToString(markerTime));
    353             break;
    354351        case WI.TimelineMarker.Type.LoadEvent:
    355352            markerElement.title = WI.UIString("Load \u2014 %s").format(Number.secondsToString(markerTime));
Note: See TracChangeset for help on using the changeset viewer.