Bug 168812 - REGRESSION(r212542): Make TimeSeriesChart.computeTimeGrid stops x-axis grid prematurely
Summary: REGRESSION(r212542): Make TimeSeriesChart.computeTimeGrid stops x-axis grid p...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Perf Dashboard (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on: 168499
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-23 18:03 PST by Ryosuke Niwa
Modified: 2017-02-23 19:14 PST (History)
12 users (show)

See Also:


Attachments
Fixes the bug (44.30 KB, patch)
2017-02-23 18:06 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Removed superfluous changes (7.32 KB, patch)
2017-02-23 18:07 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2017-02-23 18:03:51 PST
When the time range is too big compared to the available width,
we don't stop drawing the x-axis grid before reaching the end.

This is a regression from https://trac.webkit.org/changeset/212542
Comment 1 Ryosuke Niwa 2017-02-23 18:06:05 PST
Created attachment 302620 [details]
Fixes the bug
Comment 2 WebKit Commit Bot 2017-02-23 18:07:26 PST
Attachment 302620 [details] did not pass style-queue:


ERROR: Source/WebCore/html/HTMLSlotElement.cpp:36:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/dom/Document.cpp:206:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Source/WebCore/dom/Document.cpp:209:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/dom/ContainerNode.cpp:142:  Missing spaces around ||  [whitespace/operators] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:552:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:555:  Missing spaces around ||  [whitespace/operators] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:556:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:567:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:622:  Missing spaces around ||  [whitespace/operators] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:685:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:688:  Missing spaces around ||  [whitespace/operators] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:689:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:742:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebCore/dom/ContainerNode.cpp:742:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:748:  Missing spaces around ||  [whitespace/operators] [3]
ERROR: Source/WebCore/dom/ContainerNode.cpp:749:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebCore/dom/ContainerNode.cpp:749:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/Document.h:1293:  Missing spaces around ||  [whitespace/operators] [3]
Total errors found: 18 in 13 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Ryosuke Niwa 2017-02-23 18:07:29 PST
Created attachment 302621 [details]
Removed superfluous changes
Comment 4 Joseph Pecoraro 2017-02-23 18:25:49 PST
Comment on attachment 302621 [details]
Removed superfluous changes

View in context: https://bugs.webkit.org/attachment.cgi?id=302621&action=review

rs=me

> Websites/perf.webkit.org/public/v3/components/time-series-chart.js:713
>                  diff: 31 * DAY,

So this is 31 but the others are multiples of 30?
Comment 5 Ryosuke Niwa 2017-02-23 18:45:22 PST
(In reply to comment #4)
> Comment on attachment 302621 [details]
> Removed superfluous changes
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=302621&action=review
> 
> rs=me
> 
> > Websites/perf.webkit.org/public/v3/components/time-series-chart.js:713
> >                  diff: 31 * DAY,
> 
> So this is 31 but the others are multiples of 30?

Yeah, we can change it to 30 but I kept it this way for now.
Comment 6 WebKit Commit Bot 2017-02-23 19:14:26 PST
Comment on attachment 302621 [details]
Removed superfluous changes

Clearing flags on attachment: 302621

Committed r212935: <http://trac.webkit.org/changeset/212935>
Comment 7 WebKit Commit Bot 2017-02-23 19:14:33 PST
All reviewed patches have been landed.  Closing bug.