Commit Graph

121 Commits

Author SHA1 Message Date
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Patrick Brosset
639c4ea0c9 Bug 938188 - Make highlighter capable of highlighting only one region, fading out others. r=bgrins
Introduced a new highlighter option that makes each region <path> element in the highlighter only
cover the actual area of the corresponding region, excluding the area of nested regions.
This is useful when used with the existing showOnly region because it lets users see exactly where
a given region is.
This patch makes the layout-view use this new option, so that when users hover over the various
regions in the layout-view, only the corresponding regions are highlighted.
2015-06-20 14:51:50 +02:00
Patrick Brosset
c4fda0c961 Bug 1174821 - 5 - More eslint cleanup of view.js; r=janx 2015-06-16 17:12:12 +02:00
Patrick Brosset
ee3579b1fd Bug 1174821 - 4 - Refactor layoutview's dimming; r=janx 2015-06-16 17:10:26 +02:00
Patrick Brosset
02a413b767 Bug 1174821 - 3 - Consolidate and cleanup layoutview's css files; r=janx
The layout-view used 2 css files, one in /browser/devtools/layoutview
and the other in /browser/themes.
This makes it unnecessarily confusing for people looking for the right
place to make css changes.
This change re-unit all css rules in one file under /browser/themes
and cleans up the code a bit (better structure, comments, simplifications).
2015-06-16 17:04:27 +02:00
Patrick Brosset
1e926bbd85 Bug 1174821 - 2 - Show only 1 box-model region on hover; r=janx 2015-06-16 17:01:21 +02:00
Patrick Brosset
ca873364f0 Bug 1174821 - 1 - eslint cleanup of view.js; r=janx 2015-06-04 21:35:16 +02:00
Patrick Brosset
b0fc02b334 Bug 1166189 - ESLint configuration files for devtools; r=tromey
Adds a global .eslintrc file for all source files in /browser/devtools.
This file defines a set of global variables that are commonly used in
/browser/devtools code.
The files that import modules with Cu.import will need to define their
own globals as /* globals ... */ comments.
This file also defines the configuration for all the rules we want to
use.

This also adds a set of .eslintrc files, one per test directory in
/browser/devtools. Each of these files extend from one of 2 parent config
files: .eslintrc.xpcshell or .eslintrc.mochitest.
The parent config define the set of globals these types of tests have
access to (test runner functions, assertion functions, etc.).

Finally, this also adds .eslintrc files in /toolkit/devtools for code and
tests, which just extend from their counterparts in /browser/devtools.
2015-05-28 09:30:03 +02:00
Patrick Brosset
923cdc222d Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans 2015-05-22 20:50:01 +02:00
Patrick Brosset
ead969ce99 Bug 1151956 - Add tooltips with refs to source css rules in the layout-view; r=miker 2015-04-16 18:40:40 +02:00
Jan Keromnes
16f083365e Bug 1141571 - Add a legend to the Box Model tool. r=bgrings 2015-04-14 08:58:00 +02:00
Jan Keromnes
db76973457 Bug 1141571 - Replace box model's old tooltip mechanism with title attributes. r=pbrosset 2015-04-14 05:59:00 +02:00
Patrick Brosset
7c632b0f8d Bug 966787 - 2 - Skip inspector breadcrumb updates when the output doesn't change; r=bgrins
Whenever something changed on the selected element (pseudo, attribute), the
breadcrumbs widget used to loop over all breadcrumbs buttons and re-create the
markup for each.
Now, we cache a string version of the text displayed in a button and compare
the new value to that in the loop, to skip DOM updates.

Additionally, the breadcrumbs widget used to update itself after all markup mutations
in the DOM tree displayed in the inspector. The update method now looks at the mutations
array and early return if none of them actually impact the displayed breadcrumbs.
2015-04-13 10:22:05 +02:00
Panos Astithas
a936ed870b Add a devtools tag to all devtools tests (bug 1149907). r=pbrosset 2015-04-01 14:09:33 +03:00
Anush
fb06eede76 Bug 1113761 - Allow decimal values in the layout view. r=jaws r=mratcliffe 2015-02-24 09:23:00 +01:00
Brian Grinstead
78ac1b7e2c Bug 1121110 - Add a shared.properties file for localizing strings used across tools;r=vporof 2015-01-28 11:57:27 -08:00
Aaron Raimist
da5470f9f0 Bug 1042619 - Change 'width x height' letter x to a multiplication sign in devtools frontend. r=bgrins 2015-01-26 14:36:00 -05:00
Cameron McCormack
a719267659 Bug 649142 - Part 4: Convert logical margin properties. r=dbaron 2015-01-17 15:16:02 +11:00
Cameron McCormack
380a5c4044 Bug 649142 - Part 3: Convert logical padding properties. r=dbaron
Here we convert the logical padding properties into their new resolved-at-
cascade-time implementations.  This involves:

* converting -moz-padding-{start,end} into logical longhand properties
* adding padding-inline-{start,end} aliases for -moz-padding-{start,end}
* converting padding-{left,right} into longhand properties
* removing padding-{left,right}-value and
  padding-{left,right}-{ltr,rtl}-source internal properties

The CSS parser and various tests are simplified a bit as a result.
2015-01-17 15:16:02 +11:00
Phil Ringnalda
d866ff0386 Back out 9 changesets (bug 649142)
Backed out changeset 936703c75200 (bug 649142)
Backed out changeset b0252d2620d8 (bug 649142)
Backed out changeset 69ddb2036c50 (bug 649142)
Backed out changeset 67748675e669 (bug 649142)
Backed out changeset 15ed55c61f4e (bug 649142)
Backed out changeset 35c42cd138e1 (bug 649142)
Backed out changeset 1335630cf287 (bug 649142)
Backed out changeset b5725cd39a31 (bug 649142)
Backed out changeset b0eb691d6695 (bug 649142)
2014-12-30 20:04:20 -08:00
Cameron McCormack
668e24d7c7 Bug 649142 - Part 4: Convert logical margin properties. r=dbaron 2014-12-31 12:18:14 +11:00
Cameron McCormack
ca96516c72 Bug 649142 - Part 3: Convert logical padding properties. r=dbaron
Here we convert the logical padding properties into their new resolved-at-
cascade-time implementations.  This involves:

* converting -moz-padding-{start,end} into logical longhand properties
* adding padding-inline-{start,end} aliases for -moz-padding-{start,end}
* converting padding-{left,right} into longhand properties
* removing padding-{left,right}-value and
  padding-{left,right}-{ltr,rtl}-source internal properties

The CSS parser and various tests are simplified a bit as a result.
2014-12-31 12:18:14 +11:00
Patrick Brosset
b53c7a05e7 Bug 1103993 - 3 - Only refresh the rule/computed views when active; r=bgrins r=ochameau 2014-12-10 09:09:19 +01:00
Patrick Brosset
8c7726cb8c Bug 985597 - Fix layout-view tests after highlighter changes & make them more robust; r=miker 2014-11-06 13:04:51 +01:00
Patrick Brosset
0f3cb5d7ca Bug 985597 - Filter useless highlighter updates & and use requestAnimationFrame for updates; r=miker 2014-11-06 13:04:28 +01:00
Patrick Brosset
8a1b29f4bd Bug 1020038 - Disable test browser/devtools/layoutview/test/browser_layoutview_update-in-iframes.js; r=me 2014-10-13 09:35:50 +02:00
Michael Ratcliffe
584afa1e41 Bug 994732 - Make "Disable Cache" in Devtools persist (only when the toolbox is open) r=jwalker, r=pbrosset 2014-07-17 10:39:56 +01:00
Michael Ratcliffe
3fdad7a259 Bug 1032721 - Re-enable browser_inspector_infobar.js when oranges are fixed r=pbrosset 2014-07-12 20:20:28 +01:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Michael Ratcliffe
7cc87e56dd Bug 994729 - Make box model guides move on layout view region hover r=bgrins 2014-06-24 17:26:38 +01:00
Patrick Brosset
fc2789b39a Bug 1014547 - Add a css transform highlighter to the style-inspector; r=bgrins 2014-06-13 16:27:10 +02:00
Patrick Brosset
9a31f86682 Bug 1009322 - Disabled intermittent browser_editablemodel_allproperties.js test; r=me 2014-06-09 11:11:23 +02:00
Patrick Brosset
93b8048cdb Bug 1007021 - The ReflowActor observes iframes and works after page navigations; r=bgrins r=ochameau 2014-06-03 09:51:55 +02:00
Patrick Brosset
efa9eddd0c Bug 997198 - Quick layout-view tests cleanup; r=bgrins 2014-05-12 16:51:10 +02:00
Patrick Brosset
39405fa1fd Bug 997198 - Create a standalone reflow actor; r=bgrins 2014-05-12 16:51:06 +02:00
Heather Arthur
08c0492e34 Bug 985234 - add media query for when box model tab is too short. r=bgrins 2014-05-02 11:05:00 +02:00
Mr Speaker
f6632fa466 bug 986471 - rotate long labels in box model; r=pbrosset 2014-04-24 13:52:30 +02:00
Ryan VanderMeulen
66b14f4f7d Bug 996003 - Various devtools test manifest cleanups. r=miker 2014-04-15 08:03:53 -04:00
Paolo Amadini
6efc9852ae Bug 995170 - Convert legacy uses of promise.js in devtools where this doesn't result in test failures. r=jwalker 2014-04-14 14:15:43 +01:00
Michael Ratcliffe
4cc10271fe Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Girish Sharma
99fb3118c7 Bug 993580 - Permanently fix webconsole error count test and temporarily fix box model tests. r=pbrosset 2014-04-10 02:30:01 +05:30
Dave Townsend
524463fdbd Bug 850336: Devtools box model should be editable. r=pbrosset 2014-04-03 17:37:26 -07:00
Phil Ringnalda
eb147fb326 Back out 81dd398600c4 (bug 850336) for linux bc2 leaks-until-shutdown 2014-04-02 23:17:37 -07:00
Dave Townsend
b80f29f1a1 Bug 850336: Devtools box model should be editable. r=pbrosset 2014-04-02 17:44:59 -07:00
Brian Grinstead
6efe17d86f Bug 983933 - Get better colors for the Inspector's box model;r=vporof 2014-03-18 08:04:57 -05:00
Dave Townsend
1f2f02bd33 Backing out bug 850336 due to test timeouts. r=backout 2014-03-19 14:11:36 -07:00
Dave Townsend
9aa0215525 Bug 850336: Devtools box model should be editable. r=pbrosset 2014-03-19 10:38:05 -07:00
Dave Townsend
db5fc3df03 Backed out changeset a9de76765bad on a CLOSED TREE from bug 850336 for its test taking too long. 2014-03-18 13:07:49 -07:00
Dave Townsend
0ad7b9ea16 Bug 850336: Devtools box model should be editable. r=pbrosset 2014-03-18 09:25:25 -07:00
Dave Townsend
8c5d189e8e Bug 983847: Re-disable test I accidentally enabled by landing the wrong patch. r=backout 2014-03-18 09:23:30 -07:00