gecko/devtools/client/styleinspector
Patrick Brosset 0b57fca422 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
2015-11-26 12:18:17 +01:00
..
test Bug 1223035 - move output-parser.js to devtools/client/shared. r=jryans 2015-11-11 08:58:00 +01:00
computed-view.js Bug 1223035 - move output-parser.js to devtools/client/shared. r=jryans 2015-11-11 08:58:00 +01:00
computedview.xhtml Bug 1220839 - Make the inspector rule/computed searchbox clear icon show correctly in RTL;r=bgrins 2015-11-10 00:24:07 -03:00
cssruleview.xhtml Bug 1220839 - Make the inspector rule/computed searchbox clear icon show correctly in RTL;r=bgrins 2015-11-10 00:24:07 -03:00
moz.build Bug 1195995 - merge css-tokenizer into css-parsing-utils; r=mratcliffe 2015-10-06 10:13:00 -04:00
rule-view.js Bug 1223035 - move output-parser.js to devtools/client/shared. r=jryans 2015-11-11 08:58:00 +01:00
ruleview.css Bug 1192421 - Don't clear rule-view when changing selection; r=pbro 2015-10-13 09:37:57 +02:00
style-inspector-menu.js Bug 1182722 - Move DevTools l10n files. r=ochameau,glandium,Pike,bgrins 2015-11-04 15:35:53 -06:00
style-inspector-overlays.js Bug 1192421 - Don't clear rule-view when changing selection; r=pbro 2015-10-13 09:37:57 +02:00
style-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
utils.js Bug 1195995 - merge css-tokenizer into css-parsing-utils; r=mratcliffe 2015-10-06 10:13:00 -04:00