Commit Graph
24 Commits
Author SHA1 Message Date
Tim Nguyen 67dab99cca Bug 1330074 - Enable no-self-assign, no-useless-call and no-useless-return in devtools/. r=jryans
MozReview-Commit-ID: A345G1QOOpm
2017-01-10 22:14:03 +00:00
Taylor Alexander Brown 8731c833c3 Bug 1315925 - Make devtools/client/shared/components pass ESLint's "react/prop-types" rule;r=jdescottes
MozReview-Commit-ID: GBY9wX3eLys
2017-01-05 17:22:36 +01:00
Jarda Snajdr c6186d0d0f Bug 1152441 - Part 1: Enhance the Tree component for use in performance waterfall r=fitzgen
MozReview-Commit-ID: 753IKgJF6Oj
2016-09-09 16:54:05 +02:00
Tim Nguyen d26dcf592b Bug 1273653 - Fix ESLint errors in devtools/client/shared/(components|redux). r=tromey
MozReview-Commit-ID: 5hY0uII6wf8
2016-05-17 23:20:14 +02:00
Alexandre Poirot e39e7b8130 Bug 1266828 - Convert ViewHelpers.jsm into a module. r=tromey 2016-05-16 03:13:30 -07:00
L. David Baron 38d7232f8e Bug 1111440 - Replace rest of -moz-/Moz prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find * -type f -exec sed -i -f ../mozpropsub {} \;
in the root of the repository, with the file ../mozpropsub containing:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g
s/\<MozPaddingEnd\>/paddingInlineEnd/g
s/\<MozPaddingStart\>/paddingInlineStart/g
s/\<MozMarginEnd\>/marginInlineEnd/g
s/\<MozMarginStart\>/marginInlineStart/g
s/\<MozBorderEnd\>/borderInlineEnd/g
s/\<MozBorderEndColor\>/borderInlineEndColor/g
s/\<MozBorderEndStyle\>/borderInlineEndStyle/g
s/\<MozBorderEndWidth\>/borderInlineEndWidth/g
s/\<MozBorderStart\>/borderInlineStart/g
s/\<MozBorderStartColor\>/borderInlineStartColor/g
s/\<MozBorderStartStyle\>/borderInlineStartStyle/g
s/\<MozBorderStartWidth\>/borderInlineStartWidth/g

The diffs for the following files:
  layout/style/nsCSSPropAliasList.h
  layout/style/test/property_database.js
  layout/style/test/test_value_computation.html
were then manually removed from the patch.

MozReview-Commit-ID: 8fbYnlZcn9U
2016-05-14 00:00:18 -07:00
Nick Fitzgerald 1ba5099d21 Bug 1269891 - Add more documentation comments to the Tree component; r=jlongster 2016-05-04 16:43:48 -07:00
Nick Fitzgerald e5d0396cf8 Bug 1221384 - Scroll the Tree component when focusing new items with the arrow keys; r=jsantell 2016-04-04 16:54:00 +02:00
Ryan VanderMeulen 23766819a5 Merge fx-team to m-c. a=merge 2016-04-02 13:34:45 -04:00
Nick Fitzgerald d363f7a815 Bug 1261505 - Use consistent syntax for prototype methods; r=jsantell
All the other methods use the style

  {
    myMethod() { ... }
  }

while these two methods use

  {
    myMethod: function () { ... }
  }

For consistency, we should use the common style here.

MozReview-Commit-ID: 5rg8uPoULyN
2016-04-01 19:03:47 -07:00
Nick Fitzgerald cb3f11daf8 Bug 1258172 - Use C-style for loops instead of for/of to cut down on the number of CCWs when using the Tree component. r=jimb 2016-03-23 14:54:00 -04:00
Julian Descottes 159f327bd4 Bug 1243131 - memory tool: select snapshot using ACCEL+{UP/DOWN};r=fitzgen
Adds a keydown listener on the memory panel window. Select previous/next snapshot
when user presses UP/DOWN with the accelKey modifier (metaKey on OSX, ctrlKey on
windows).

Keydown events with modifiers are no longer listened to by the tree node elements.

Updated tree node test.
Added new mochitest to test the new keyboard navigation on the census view. )
2016-02-12 11:03:34 +01:00
Phil Ringnalda ef09fca19a Back out c578a05bb9d6 (bug 1243131) for browser_memory_keyboard-snapshot-list.js timeout threshold exceeded on Linux32 debug 2016-02-11 21:50:07 -08:00
Julian Descottes 00572f935a Bug 1243131 - memory tool: select snapshot using ACCEL+{UP/DOWN};r=fitzgen
Adds a keydown listener on the memory panel window. Select previous/next snapshot
when user presses UP/DOWN with the accelKey modifier (metaKey on OSX, ctrlKey on
windows).

Keydown events with modifiers are no longer listened to by the tree node elements.

Updated tree node test.
Added new mochitest to test the new keyboard navigation on the census view. )
2016-02-08 16:30:01 +01:00
Jordan Santell 12579c63f8 Bug 1176056 - Tests for the JITOptimizations react component. r=fitzgen 2016-02-03 12:04:51 -08:00
Julian Descottes b3e95be975 Bug 1239673 - memorytable: set tree-node-odd from JS. r=vporof
Only visible table rows are rendered, therefore we
cannot rely on :nth-child(2) to create background stripes.

This commit adds the source index to the treeNode props.
Using this index, the treeNode can add a "tree-node-odd"
className to its element.

In css, tree-node-odd is then used to add the alternate
background color to a row,
2016-01-19 01:44:44 +01:00
Julian Descottes 1d7187b248 Bug 1238941 - Remove caching in devtools tree widget (react). r=fitzgen 2016-01-14 20:33:09 +01:00
Wes Kocher 470b7ace05 Backed out changeset 3cea1d886e9e (bug 1238941) for being a possible cause of frequent devtools failures in browser_profiler_tree-abstract-02.js a=backout 2016-01-15 10:42:50 -08:00
Julian Descottes d0ec43d4f1 Bug 1238941 - Remove caching in devtools tree widget (react). r=fitzgen 2016-01-14 20:33:09 +01:00
Nick Fitzgerald 07140c5952 Bug 1229229 - Display dominator trees in the memory tool's UI; r=jsantell
This patch overhauls the memory tool's frontend from being in a state of viewing
a snapshot's census (the implicit default) or viewing a census diff (a special
cased kind of thing) to one of three recognized view states: (1) census, (2)
diffing, or (3) dominator tree. The logic surrounding our current view is more
explicit now. View option (3) is the new one, whose introduction required those
clean ups.

Dominator trees are too large to render in full, all at once. Instead, we
eagerly load and render a few levels deep and then incrementally fetch further
subtrees as their parents are expanded in the UI. This means that we get new
Tree component instances across incremental fetches. Before this commit, the
Tree component stored a bunch of state internally (in this.state rather than
this.props) and we would lose focus and expansion state across incremental
fetches. This internal state has been pulled out and made as explicit props,
which are now managed by actions and reducers just like the rest of the state.
2016-01-13 12:27:30 -08:00
Nick Fitzgerald 3aaacb85e4 Bug 1236053 - Remove the filtering functionality from the Tree component; r=jsantell
In practice, we filter trees off-main-thread in a worker and the tree that we
pass to the Tree component is already filtered, which is a better architecture
anyways. Additionally, we lack any kind of tests for the Tree component's
built-in filtering. And finally, there isn't even a single user of the built-in
filtering functionality.

Dead it!
2016-01-06 13:57:12 -08:00
Nick Fitzgerald 800b5a8f0c Bug 1235933 - Fix auto expansion of nodes in the Tree component; r=jsantell 2016-01-06 13:57:12 -08:00
Nick Fitzgerald 5f4a6990e5 Bug 1235909 - Add optional props for expand/collapse event handlers to the Tree component; r=jsantell 2016-01-06 13:57:12 -08:00
Jordan Santell 6a789d3281 Bug 1226319 - pt1 - Move react tree widget in memory tool to shared components. r=fitzgen 2015-11-20 17:50:31 -08:00