Commit Graph
22 Commits
Author SHA1 Message Date
Julian Descottes 2e2686f9f6 Bug 1157469 - use EventListenerService to update markupview event bubbles. r=bgrins
Inspector actor now uses EventListenerService:addListenerChangeListener to propagate
event listener changes as mutations with type 'events'.

markupview will now trigger an update when receiving a mutation of type 'event', and
the event bubble display will be updated
2016-01-06 15:01:24 -08:00
Gabriel Luong c63ff3b56b Bug 1237441 - Move styleinspector directory into the shared inspector directory r=pbro 2016-01-12 09:52:12 -08:00
Wes Kocher 9329572311 Backed out changeset 29f184e43309 (bug 1237441) for eventual build bustage 2016-01-12 09:20:43 -08:00
Gabriel Luong b5d2cb9306 Bug 1237441 - Move styleinspector directory into the shared inspector directory r=pbro 2016-01-12 08:55:46 -08:00
Phil Ringnalda f25505f737 Back out d933300edeed (bug 1157469) for devtools xpc::IsInContentXBLScope crashes, a=backout 2016-01-07 20:37:06 -08:00
Julian Descottes a6686f0861 Bug 1157469 - use EventListenerService to update markupview event bubbles;r=bgrins
Inspector actor now uses EventListenerService:addListenerChangeListener to propagate
event listener changes as mutations with type 'events'.

markupview will now trigger an update when receiving a mutation of type 'event', and
the event bubble display will be updated
2016-01-06 15:01:24 -08:00
Abdulla eee754ec70 Bug 1219920 - Iterate through classNames in the WalkerActor using classList; r=pbro 2015-12-09 15:44:00 +01:00
Grisha Pushkov 56416bde3c Bug 1093593 - Order of attributes in markup view depends on input order. r=pbro 2015-11-26 04:44:00 +01:00
Patrick Brosset 1e4fd4ece5 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
Tom Tromey 569b6631ca Bug 1223452 - avoid Cu.importGlobalProperties; r=ochameau 2015-11-16 11:55:00 +01:00
Brian Grinstead 061eed57c9 Bug 835896 - Make inspector searchbox also provide results matching text or attributes in the page;r=pbrosset 2015-11-10 21:48:57 -08:00
Tim Nguyen a78bac956a Bug 1208864 - Duplicate node context menu item in markup view. r=pbro 2015-10-19 14:04:00 +02:00
Brian Grinstead bdbc11be29 Bug 1198039 - Don't modify the DOM after dragging an element and putting it back where it started;r=pbrosset 2015-10-07 08:19:09 -07:00
Carsten "Tomcat" Book 8e4b85e6dd merge mozilla-inbound to mozilla-central a=merge 2015-10-01 12:39:25 +02:00
Brian Grinstead 039a6234b2 Bug 1208544 - Listen to nativeAnonymousChildList changes from devtools;r=pbrosset 2015-09-24 08:23:34 -07:00
Tooru Fujisawa cf930f47a0 Bug 1207499 - Part 14: Remove use of expression closure from devtools/. r=pbrosset 2015-09-24 21:31:45 +09:00
Michael Ratcliffe a638984ea2 Bug 1203520 - We need a DevTools ESLint plugin containing our ruleset r=gps 2015-09-30 14:44:48 +01:00
Brian Grinstead a107ec8f3d Bug 1209342 - Ignore attribute changes from Mutation Observer with null newValue;r=pbrosset 2015-09-29 08:45:24 -07:00
Wes Kocher d12895f90d Backed out 2 changesets (bug 1034110) for test_mutationobserver_anonymous.html bustage CLOSED TREE
Backed out changeset 7b145ea2fbde (bug 1034110)
Backed out changeset 3a8904e50016 (bug 1034110)
2015-09-24 11:29:11 -07:00
Brian Grinstead b62b2e2b87 Bug 1034110 - Listen to nativeAnonymousChildList changes from devtools;r=pbrosset 2015-09-24 08:23:34 -07:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
J. Ryan Stinnett a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00