RESOLVED FIXED83122
Web Inspector: make padding and client window width part of timeline calculator's state
https://bugs.webkit.org/show_bug.cgi?id=83122
Summary Web Inspector: make padding and client window width part of timeline calculat...
Andrey Kosyakov
Reported 2012-04-04 01:09:36 PDT
We used to pass client width to calculator's computeBarGraphWindowPosition(), then adjust for possible padding on the left. This often required passing paddingLeft along with the calculator and lead to possible inconsistent values of width used. Also, this makes it difficult to reuse position calculation logic for a single position, not the entire bar. This adds display window dimensions to calculator's state, so that it's sufficient to pass calculator around and trivial to implement position calculation for single time value.
Attachments
Patch (17.11 KB, patch)
2012-04-04 01:17 PDT, Andrey Kosyakov
no flags
Patch (17.95 KB, patch)
2012-04-04 01:44 PDT, Andrey Kosyakov
pfeldman: review+
Andrey Kosyakov
Comment 1 2012-04-04 01:17:47 PDT
Andrey Kosyakov
Comment 2 2012-04-04 01:44:50 PDT
Pavel Feldman
Comment 3 2012-04-04 02:09:08 PDT
Comment on attachment 135528 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=135528&action=review > Source/WebCore/inspector/front-end/TimelinePanel.js:735 > + this._minWidth = 5; Please use constants for these
Andrey Kosyakov
Comment 4 2012-04-04 02:27:40 PDT
Philippe Normand
Comment 5 2012-04-04 03:21:01 PDT
Philippe Normand
Comment 6 2012-04-04 03:22:28 PDT
Andrey Kosyakov
Comment 8 2012-04-04 05:42:14 PDT
Note You need to log in before you can comment on or make changes to this bug.