|
Import polymer in a single place and remove d3 hacks
All key bootstraps just import tracing/ui/base/polymer.html which then initializes Polymer to shadow mode before importing. As part of this, I removed our dependence on webcomponents (sometimes lite, sometimes not!) because we're Chrome only.
But, you will notice these ugly polymer preload and postload scripts. This is a temporary workaround for #2698, in which PyVulcanize causes us to reorder scripts relative to imports.
Another thing "fixed" in this CL is the early- and incorrect import of D3 added during the Polymer conversion. D3 didn't work because its "generic" module loader that is in d3-min.js gets confused by being inlined (I'm a little confused why). The "better hack" I replaced the early loading with is to trick the d3 module loader into thinking that there's an AMD module loader present, via a preload and postload script. In a world where #2698 was fixed, we could have these be inline in the d3.html bootstrap.
BUG=catapult:#2580
Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/9be0433d2f769c91b70c4851f1deb8f3f8682412
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+68 lines, -82 lines) |
Patch |
|
M |
tracing/trace_viewer.gypi
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tracing/tracing/base/base.html
|
View
|
|
2 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
|
M |
tracing/tracing/tests.html
|
View
|
|
1 chunk |
+1 line, -9 lines |
0 comments
|
Download
|
|
M |
tracing/tracing/trace2html.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tracing/tracing/ui/base/base.html
|
View
|
|
1 chunk |
+4 lines, -17 lines |
0 comments
|
Download
|
|
M |
tracing/tracing/ui/base/d3.html
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A + |
tracing/tracing/ui/base/d3_postload.js
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
A |
tracing/tracing/ui/base/d3_preload.js
|
View
|
|
1 chunk |
+11 lines, -0 lines |
2 comments
|
Download
|
|
M |
tracing/tracing/ui/base/dom_helpers_test.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tracing/tracing/ui/base/grouping_table_groupby_picker.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A + |
tracing/tracing/ui/base/polymer_postload.html
|
View
|
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
|
A |
tracing/tracing/ui/base/polymer_preload.html
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
tracing/tracing/ui/base/table_test.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tracing/tracing/ui/base/utils.html
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tracing/tracing/ui/base/utils_test.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
tracing/tracing/ui/base/webcomponents.html
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
tracing/tracing/value/ui/scalar_span_test.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tracing/tracing_build/trace2html.py
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
tracing/tracing_examples/chrome_inspect_test_shell.html
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
tracing/tracing_examples/deep_reports.html
|
View
|
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
tracing/tracing_examples/skia_debugger.html
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
tracing/tracing_examples/trace_viewer.html
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
Total messages: 10 (5 generated)
|