WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
150703
Web Inspector: Convert TimelineRuler to View base class
https://bugs.webkit.org/show_bug.cgi?id=150703
Summary
Web Inspector: Convert TimelineRuler to View base class
Matt Baker
Reported
2015-10-29 18:59:46 PDT
* SUMMARY Convert TimelineRuler to View base class. TimelineRuler can update markers and selection separately from the rest of its content, which may require additional layout logic in View.js.
Attachments
[Patch] Proposed Fix
(29.74 KB, patch)
2015-11-03 14:16 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(29.74 KB, patch)
2015-11-03 15:33 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(29.72 KB, patch)
2015-11-03 16:07 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Patch] Proposed Fix
(29.98 KB, patch)
2015-11-05 12:30 PST
,
Matt Baker
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-10-29 19:00:08 PDT
<
rdar://problem/23326721
>
Matt Baker
Comment 2
2015-11-03 14:16:55 PST
Created
attachment 264722
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 3
2015-11-03 14:56:30 PST
Comment on
attachment 264722
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=264722&action=review
> Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js:340 > - var visibleWidth = this._recalculate(); > + let visibleWidth = this.element.clientWidth;
Why this change?
> Source/WebInspectorUI/UserInterface/Views/View.js:44 > + get isLayoutPending()
This should be a function if it is prefixed with "is".
Matt Baker
Comment 4
2015-11-03 15:28:38 PST
(In reply to
comment #3
)
> Comment on
attachment 264722
[details]
> [Patch] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=264722&action=review
> > > Source/WebInspectorUI/UserInterface/Views/TimelineRuler.js:340 > > - var visibleWidth = this._recalculate(); > > + let visibleWidth = this.element.clientWidth; > > Why this change?
I think this was an error.
> > Source/WebInspectorUI/UserInterface/Views/View.js:44 > > + get isLayoutPending() > > This should be a function if it is prefixed with "is".
What about changing to "has"? We prefix getters with both "is" and "has", the latter being slightly more common.
Matt Baker
Comment 5
2015-11-03 15:33:57 PST
Created
attachment 264740
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 6
2015-11-03 16:00:04 PST
Comment on
attachment 264740
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=264740&action=review
> Source/WebInspectorUI/UserInterface/Views/View.js:44 > + get hasPendingLayout()
Getters should have no verb prefix, including "has". Properties should be about the state of the object, not a question being asked. A better property name would be "layoutScheduled" or "layoutPending". Otherwise this should be a function with an "is" or "has" prefix.
Matt Baker
Comment 7
2015-11-03 16:07:51 PST
Created
attachment 264747
[details]
[Patch] Proposed Fix
Blaze Burg
Comment 8
2015-11-05 11:55:33 PST
Comment on
attachment 264747
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=264747&action=review
r=me, nice work
> Source/WebInspectorUI/ChangeLog:7 > +
Please add a summary (from the bug is fine).
Matt Baker
Comment 9
2015-11-05 12:30:13 PST
Created
attachment 264878
[details]
[Patch] Proposed Fix
WebKit Commit Bot
Comment 10
2015-11-05 13:18:36 PST
Comment on
attachment 264878
[details]
[Patch] Proposed Fix Clearing flags on attachment: 264878 Committed
r192070
: <
http://trac.webkit.org/changeset/192070
>
WebKit Commit Bot
Comment 11
2015-11-05 13:18:40 PST
All reviewed patches have been landed. Closing bug.
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