WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
83122
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
Details
Formatted Diff
Diff
Patch
(17.95 KB, patch)
2012-04-04 01:44 PDT
,
Andrey Kosyakov
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andrey Kosyakov
Comment 1
2012-04-04 01:17:47 PDT
Created
attachment 135527
[details]
Patch
Andrey Kosyakov
Comment 2
2012-04-04 01:44:50 PDT
Created
attachment 135528
[details]
Patch
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
Committed
r113156
: <
http://trac.webkit.org/changeset/113156
>
Philippe Normand
Comment 5
2012-04-04 03:21:01 PDT
(In reply to
comment #4
)
> Committed
r113156
: <
http://trac.webkit.org/changeset/113156
>
This patch broke 4 inspector tests on GTK...
http://build.webkit.org/results/GTK%20Linux%2064-bit%20Release/r113156%20(21569)/results.html
Philippe Normand
Comment 6
2012-04-04 03:22:28 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > Committed
r113156
: <
http://trac.webkit.org/changeset/113156
> > > This patch broke 4 inspector tests on GTK... >
http://build.webkit.org/results/GTK%20Linux%2064-bit%20Release/r113156%20(21569)/results.html
https://bugs.webkit.org/show_bug.cgi?id=83136
Ádám Kallai
Comment 7
2012-04-04 04:34:31 PDT
These tests are failing on Qt. After
r113156
.
http://trac.webkit.org/changeset/113156
* http/tests/inspector/network/network-initiator-from-console.html Diff:
http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r113156%20(35808)/http/tests/inspector/network/network-initiator-from-console-diff.txt
* http/tests/inspector/network/network-sidebar-width.html Diff:
http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r113156%20(35808)/http/tests/inspector/network/network-sidebar-width-diff.txt
* http/tests/inspector/resource-har-pages.html Diff:
http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r113156%20(35808)/http/tests/inspector/resource-har-pages-diff.txt
* inspector/debugger/source-frame.html Diff:
http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r113156%20(35808)/inspector/debugger/source-frame-diff.txt
* inspector/debugger/watch-expressions-panel-switch.html Diff:
http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r113156%20(35808)/inspector/debugger/watch-expressions-panel-switch-diff.txt
* inspector/network-status-non-http.html Diff:
http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r113156%20(35808)/inspector/network-status-non-http-diff.txt
I will skip these tests until It is fixed. Thanks for your investigation. Please unskip these tests if you have fixed it.
Andrey Kosyakov
Comment 8
2012-04-04 05:42:14 PDT
Committed
r113177
: <
http://trac.webkit.org/changeset/113177
>
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