RESOLVED FIXED168812
REGRESSION(r212542): Make TimeSeriesChart.computeTimeGrid stops x-axis grid prematurely
https://bugs.webkit.org/show_bug.cgi?id=168812
Summary REGRESSION(r212542): Make TimeSeriesChart.computeTimeGrid stops x-axis grid p...
Ryosuke Niwa
Reported 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
Attachments
Fixes the bug (44.30 KB, patch)
2017-02-23 18:06 PST, Ryosuke Niwa
no flags
Removed superfluous changes (7.32 KB, patch)
2017-02-23 18:07 PST, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2017-02-23 18:06:05 PST
Created attachment 302620 [details] Fixes the bug
WebKit Commit Bot
Comment 2 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.
Ryosuke Niwa
Comment 3 2017-02-23 18:07:29 PST
Created attachment 302621 [details] Removed superfluous changes
Joseph Pecoraro
Comment 4 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?
Ryosuke Niwa
Comment 5 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.
WebKit Commit Bot
Comment 6 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>
WebKit Commit Bot
Comment 7 2017-02-23 19:14:33 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.