WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
155348
Web Inspector: Make it possible to disable TimelineRuler UI
https://bugs.webkit.org/show_bug.cgi?id=155348
Summary
Web Inspector: Make it possible to disable TimelineRuler UI
Matt Baker
Reported
2016-03-10 20:59:35 PST
* SUMMARY Make it possible to disable TimelineRuler UI. Disabling the ruler should lock the current selection, and hide the selection handles to emphasize the non-editable state. * NOTE If allowsTimeRangeSelection is false, setting disabled = true would have no effect.
Attachments
[Video] Disabled behavior
(329.32 KB, video/mp4)
2016-03-10 21:02 PST
,
Matt Baker
no flags
Details
[Patch] Proposed Fix
(4.74 KB, patch)
2016-03-10 21:16 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(4.67 KB, patch)
2016-03-11 09:36 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-03-10 20:59:49 PST
<
rdar://problem/25103505
>
Matt Baker
Comment 2
2016-03-10 21:02:39 PST
Created
attachment 273680
[details]
[Video] Disabled behavior Double-click disables the ruler for demo purposes only. In the real world this would be set programmatically.
Matt Baker
Comment 3
2016-03-10 21:16:07 PST
Created
attachment 273682
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 4
2016-03-10 23:34:41 PST
Comment on
attachment 273682
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=273682&action=review
> Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js:727 > - this.element.style.pointerEvents = "all"; > + this.element.style.pointerEvents = pointerEvents;
This could be changed to: delete this.element.style.pointerEvents or this.element.style.pointerEvents = null;
Matt Baker
Comment 5
2016-03-11 09:31:46 PST
(In reply to
comment #4
)
> Comment on
attachment 273682
[details]
> [Patch] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=273682&action=review
> > > Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js:727 > > - this.element.style.pointerEvents = "all"; > > + this.element.style.pointerEvents = pointerEvents; > > This could be changed to: delete this.element.style.pointerEvents or > this.element.style.pointerEvents = null;
Both methods results in "" being returned by `this.element.style.pointerEvents`, so I'll go with " = null".
Matt Baker
Comment 6
2016-03-11 09:36:45 PST
Created
attachment 273737
[details]
[Patch] Proposed Fix
WebKit Commit Bot
Comment 7
2016-03-11 10:30:01 PST
Comment on
attachment 273737
[details]
[Patch] Proposed Fix Clearing flags on attachment: 273737 Committed
r198026
: <
http://trac.webkit.org/changeset/198026
>
WebKit Commit Bot
Comment 8
2016-03-11 10:30:04 PST
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 9
2016-03-14 13:35:05 PDT
Comment on
attachment 273737
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=273737&action=review
> Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js:722 > - if (this._mouseMoved) > + if (!this._enabled) > + return; > + > + if (!this._mouseMoved) > return;
This flipped the condition of the mouseMoved check =(.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug