When editing the style attribute, do not trigger autocomplete suggestions if the style attribute
was already closed by a set of matching double or single quotes.
Added a new test and moved common test functions to a dedicated helper.
MozReview-Commit-ID: 5AfkNXWvqTA
--HG--
rename : devtools/client/inspector/markup/test/browser_markup_css_completion_style_attribute.js => devtools/client/inspector/markup/test/browser_markup_css_completion_style_attribute_01.js
extra : rebase_source : 98101b99cde59dba808bc91465ddcebfd1518dda
When clearing all snapshots, if currently displaying a diff, dispatch the
diffing.toggleDiffing action.
MozReview-Commit-ID: 1DyPZ7tHC1X
--HG--
extra : rebase_source : 595d182023567c01fc14b7fb25fc65406296466d
There are few easy wins that greatly improve our perf with React:
* Add the PureRenderMixin to pure components that always render the same thing
given the same props and state. This implements React's shouldComponentUpdate
as a shallow equality check of the props and state, so render() will be
skipped if they match the previous values.
* Change action dispatch functions so they are only created once instead of on
each render(). If an outer component creates new functions for each render()
call, then the PureRenderMixin equality check fails for only the new function
instances, even though no data has changed.
MozReview-Commit-ID: D96X048nEF4
browser_scratchpad_contexts.js and browser_scratchpad_execute_print.js used to
access javascript properties on the content window object by using 'content.'
directly.
Now these tests use 'ContentTask.spawn' instead, which required the
runAsyncCallbackTests helper to be changed so it would use a Task and yield
on the promises returned by prepare and then.
MozReview-Commit-ID: Cgw2mRxPrP4
--HG--
extra : rebase_source : de57e5c7ab155ee48f537941e0db7cf7f82ed266
Bail out from the markup view onKeyDown handler if any modifier is currently
true. All shortcuts specified in this handler are intended to be used without
modifier, so for now this approach is fine.
Added a test checking the use case mentioned in Bug 1230325, with the S
shortcut. In order to write the test, had to create an additional method on
the test actor to be able to wait for events in the window of the content process.
MozReview-Commit-ID: 67icou0HkfA
--HG--
extra : rebase_source : e7235c487134505563cae3c5ac8bdabd42dc4363
With Bug 1195120, the ".tag-line .tag-state" has a z-index of 0 instead
of -1. This element is used to display the colored background of a selected
row.
Adding z-index:1 to the pseudoclass indicator ensures it is displayed above
the .tag-state element.
MozReview-Commit-ID: K4aWyJXevWf
--HG--
extra : amend_source : 0db0ef5ae49d838949fd9f105d6c5733c9c9aed0