gecko-dev/devtools/server/actors
Patrick Brosset c1316a2855 Bug 1222409 - Listen to window resize events on server and use this to refresh style-inspector; r=bgrins
1 - Make the LayoutChangesObserver also send "resize" events; r=bgrins
The LayoutChangesObserver was originally made to observe all kinds of
layout-related events. So far, it was only observing reflows though.
This adds the capability to also observe resize events on the content
window.

2 - Removed the non-e10s rule/computed-views refreshing mechanism; r=bgrins
When the window is resized, the styles shown in the rule-view and
computed-view need to be updated (media-queries may be at play).
This was done before using a local-only, non-e10s solution. The
inspector-panel would listen to the resize event on the linkedBrowser
in the current tab.
This, obviously, did not work with e10s or across a remote connection.
This change just removes all of the code involved with this.
This won't cause any regression or backwards-compatibility problems as
a new server-driven resize observer is being put in place in this bug.
Even if you connected to an older server, you wouldn't see a difference
because the refresh-on-resize didn't work over remote connections already.

3 - Refresh the style-inspector when the LayoutChangesObserver detects resize
The implementation is simple, the inspector actor uses the
LayoutChangesObserver to detect window resize, and when it does, it
forwards the event to its front.
This is similar to how we deal with reflow events, except that for
reflows, the inspector actor (walker in this case), first filters on
the server to see if the reflow would indeed impact known nodes.
For resize events, it seemed more complex to do this kind of server
side filtering as this would involve remembering which node is currently
selected and which style were applied, and then compare that with the
new styles.

4 - Tests for the style-inspector refresh on window resize

--HG--
extra : commitid : 4AAhw4VBYII
extra : rebase_source : 412159e2a189541758613dd2fae954d973096f72
2015-11-26 12:18:17 +01:00
..
highlighters Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
utils Bug 1220458 - Resolves ActorRegistry.registerActor only once actor is registered in the child processes. r=jryans 2015-11-19 09:51:21 -08:00
actor-registry.js Bug 1220458 - Resolves ActorRegistry.registerActor only once actor is registered in the child processes. r=jryans 2015-11-19 09:51:21 -08:00
addon.js Bug 1113865 - Replace all calls to dbg_assert with DevToolsUtils.assert. r=fitzgen 2015-11-16 07:22:49 -08:00
animation.js Bug 1211801 - Add a playback rate selector to the animation panel. r=miker 2015-11-02 12:54:07 +01:00
call-watcher.js
canvas.js
child-process.js Bug 1113865 - Replace all calls to dbg_assert with DevToolsUtils.assert. r=fitzgen 2015-11-16 07:22:49 -08:00
childtab.js
chrome.js
common.js Bug 1223766 - Removing an actor from an actor pool should destroy it;r=past 2015-11-13 10:19:55 +01:00
csscoverage.js Bug 1182722 - Move DevTools l10n files. r=ochameau,glandium,Pike,bgrins 2015-11-04 15:35:53 -06:00
device.js Bug 1196047 - Move system.js to devtools/shared. r=jsantell 2015-10-09 18:26:04 -05:00
director-manager.js
director-registry.js
eventlooplag.js
framerate.js Bug 1196047 - Move shared/shared perf files to server/performance. r=jsantell 2015-10-09 18:26:09 -05:00
gcli.js
heap-snapshot-file.js Bug 1207645 - Create HeapSnapshotFileActor; r=jryans 2015-09-25 15:35:02 -07:00
highlighters.css Backed out changeset ddb0ac65cba2 (bug 1168113) for possibly causing crashes on fx-team on a CLOSED TREE 2015-11-19 16:26:31 +01:00
highlighters.js Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE 2015-10-07 14:03:21 +02:00
inspector.js Bug 1222409 - Listen to window resize events on server and use this to refresh style-inspector; r=bgrins 2015-11-26 12:18:17 +01:00
layout.js Bug 1222409 - Listen to window resize events on server and use this to refresh style-inspector; r=bgrins 2015-11-26 12:18:17 +01:00
memory.js Bug 1196047 - Move shared/shared perf files to server/performance. r=jsantell 2015-10-09 18:26:09 -05:00
memprof.js Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE 2015-10-07 14:03:21 +02:00
monitor.js
moz.build Bug 1207645 - Create HeapSnapshotFileActor; r=jryans 2015-09-25 15:35:02 -07:00
object.js Bug 1165807 - display WeakSet and WeakMap contents in console; r=bz,fitzgen 2015-11-16 06:50:00 -08:00
performance-entries.js
performance-recording.js Bug 1196047 - Move most of shared/performance to client or server. r=jsantell 2015-10-09 18:26:08 -05:00
performance.js Bug 1218078 - Show onload and DOMContentLoaded markers in the netmonitor's frontend, r=smaug, jsantell, tromey 2015-11-11 23:11:40 +01:00
preference.js
pretty-print-worker.js Bug 1221549 - Package source-map with the same layout than source tree r=jryans 2015-11-16 07:22:48 -08:00
profiler.js Bug 1196047 - Move shared/shared perf files to server/performance. r=jsantell 2015-10-09 18:26:09 -05:00
promises.js Bug 1203520 - We need a DevTools ESLint plugin containing our ruleset r=gps 2015-09-30 14:44:48 +01:00
root.js Bug 1218078 - Show onload and DOMContentLoaded markers in the netmonitor's frontend, r=smaug, jsantell, tromey 2015-11-11 23:11:40 +01:00
script.js Backed out changeset e8c43ec095e3 (bug 1132501) for Gu permafail CLOSED TREEx 2015-11-18 14:34:38 -08:00
settings.js
storage.js Bug 1224545 - Remove async-utils/async method and use Task.async instead. r=jryans 2015-11-13 16:54:09 +01:00
string.js
styleeditor.js
styles.js Bug 1223452 - avoid Cu.importGlobalProperties; r=ochameau 2015-11-16 11:55:00 +01:00
stylesheets.js Bug 1196047 - Move indentation.js to devtools/shared. r=bgrins 2015-10-09 18:26:05 -05:00
timeline.js Bug 1218078 - Show onload and DOMContentLoaded markers in the netmonitor's frontend, r=smaug, jsantell, tromey 2015-11-11 23:11:40 +01:00
webapps.js Bug 1220700 - Cannot enable add-ons installed from WebIDE r=ochameau 2015-11-17 11:03:44 -08:00
webaudio.js
webbrowser.js Bug 1113865 - Replace all calls to dbg_assert with DevToolsUtils.assert. r=fitzgen 2015-11-16 07:22:49 -08:00
webconsole.js Bug 1227139 - Fix the webconsole for addon and browser content toolbox by handling a missing performance property on this.window. r=bgrins 2015-11-25 07:54:26 -08:00
webgl.js
worker.js Backed out changeset d6d640c4b8c2 (bug 1221892) for win debug dt8 bustage 2015-11-13 11:50:08 -08:00