Intercept the applySourceMap source map worker request, so that when a
source is pretty-printed, source map subscribers can be updated.
That this does not yet handle pretty-printing original sources. This
isn't supported yet by the debugger, and since the plan is to handle it
by augmenting the existing source map, it should be easy to fix this
code when it is implemented.
The mochitest is included here for testing but I am going to land it
upstream as well.
MozReview-Commit-ID: 3Lp1ikO8IzZ
Remove the specific console font-size, forces string color to currentColor and
change dark theme location filename color.
MozReview-Commit-ID: 842kpNVzN6l
Today, inspector startup is clunky and is made is many steps
in which the left pane with the markup view is loaded full width
before the rule view is opened. It blinks and resize things.
* display the left pane (inspector-main-content) only when the size of panels
is set by the splitter.
* fix markupbox hidding while loading as "collapsed" wasn't working
* setup the splitter with the right size immediately
* prevent unnecessary renders in split-box
MozReview-Commit-ID: HvTnmzKpbjy
This changes the style editor and inspector to use the same pref that
the other tools are using. This pref is a bit of a misnomer for now,
because the inspector and style editor aren't actually using the
client-side service; but I think the name is not very important, and
unifying the prefs is worthwhile.
MozReview-Commit-ID: FlwCICnoaX4
This patch does not change the color for Reps, which is done in
Github and will be available in the 0.0.13 Reps bundle.
MozReview-Commit-ID: ANNjYc2zW3j
Currently the animation inspector re-generates the entire animation timeline
whenever an animation is added, changed, etc.
To avoid this, averts to re-render the component which no needs.
In this implementation, premises the actorID can be used as unique id for each
animations. The mechanism is below.
At initial time, renders all actors as normally. In this time, holds actorID
and related components to componentsMap.
Next, in case of that needs to update the UI, gets animation actors from server,
and compares actorID of both the actors and componentsMap. If retrieved actorID
exists in componentsMap, updates the view area only without re-rendering.
For example, supposes, has an animation (actid-1) when opens the inspector, and
a new animation (actid-2) was added a little later.
At initial rendering, holds "actid-1” of first animation as key and related
components to componentsMap. Next, when “actid-2” animation is added to document,
can get animation actors that are “actid-1” and “actid-2” from server. Because
“actid-1” is already held in componentsMap, updates “actid-1”’s view area. This
is because TimeScale will be updated. Then "actid-2” render as normally since
componentMap does not have the actorID. After rendered, holds “actid-2” and
related components.
However, even if actorID exists, if keyframes (tracks) and effect timing
(state) differ, re-render that. Also, if iterationCount of effect timing
represents Infinity, do re-rendering. Because the display area expands by the
end of the currently displayed time.
And, if actorID in componentsMap is not in retrieved actors, removes related
components.
MozReview-Commit-ID: GmifRX3GzYd