Commit Graph

497 Commits

Author SHA1 Message Date
Alexandre Poirot
fb1c47cdd1 Bug 1184192 - Fix pending request issue while running browser_ruleview_edit-selector_03.js r=bgrins 2015-07-23 13:36:34 -07:00
Tom Tromey
c685e342f6 Bug 1142206 - Let GetSubpropertiesForCSSProperty handle custom property. r=heycam, r=pbrosset 2015-07-20 16:25:00 -04:00
Gabriel Luong
3eecbdb597 Bug 1167669 - Part 4: Add unit tests for highlighting new filter style matches when rule properties are added and modified r=bgrins 2015-07-20 21:08:46 -07:00
Gabriel Luong
24a59a247c Bug 1167669 - Part 3: Refactor this.ruleEditor.ruleView to this.ruleView in TextPropertyEditor r=bgrins 2015-07-20 21:03:47 -07:00
Gabriel Luong
f0fe5ef609 Bug 1167669 - Part 2: Highlight new filter style matches when rules and properties are added or modified r=bgrins 2015-07-20 21:03:22 -07:00
Gabriel Luong
33892766b8 Bug 1167669 - Part 1: Refactor the logic for highlighting rule selector, property and stylesheet source r=bgrins 2015-07-20 21:03:17 -07:00
Julian Descottes
9d1e30789a Bug 1164343: Part 2 - Refactor style inspector tests to point to the new context-menu and refactor doc.defaultView to styleWindow r=mikeratcliffe 2015-07-13 00:44:22 +02:00
Julian Descottes
3d9f841ce4 Bug 1164343: Part 1 - Extract context-menu logic from rule-view and computed-view to style-inspector-menu r=mikeratcliffe 2015-07-13 00:52:16 +02:00
Gabriel Luong
2c2c67392d Bug 1183792 - [Rule View] Newly added rule should keep a reference to the RuleEditor r=mratcliffe 2015-07-16 00:37:49 -07:00
Masatoshi Kimura
8a64f334be Backed out changeset acb7eb7f5ad4 (bug 1176496) for web compat problems 2015-07-15 23:37:22 +09:00
Gabriel Luong
c07652bbef Bug 1178535 - Part 2: Highlight pseudoclass and attribute texts in the selector text of the rule view r=bgrins 2015-07-14 10:49:28 -07:00
Gabriel Luong
9521d0f847 Bug 1178535 - Part 1: Parse the pseudoclasses and attributes from the selector text r=tromney 2015-07-14 10:43:51 -07:00
Gabriel Luong
79fa3b4afa Bug 1174543 - Part 2: Clear the matched selector container before rebuilding the matched selectors r=mratcliffe 2015-07-10 14:21:23 -07:00
Gabriel Luong
34fd321c34 Bug 1174543 - Part 1: Remove Templater code in computed-view.js r=mratcliffe 2015-07-10 14:21:21 -07:00
Alexandre Poirot
df9d346f28 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset,bgrins 2015-07-10 00:22:53 -07:00
Ryan VanderMeulen
0c99cebbf8 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-09 13:52:22 -04:00
Gabriel Luong
750fa4987b Bug 1181243 - Ctrl + F should focus the filter style search bar if the focus is in the rule and computed view r=mikeratcliffe 2015-07-08 10:40:45 -07:00
Tim Nguyen
e61eae63e9 Bug 1130330 - Add copy url context menu item in styleinspector. r=pbrosset 2015-07-03 06:04:00 +02:00
Masatoshi Kimura
99d4901bcb Bug 1176496 - Drop support for -moz-prefixed gradients. r=dbaron 2015-07-10 00:57:50 +09:00
J. Ryan Stinnett
7e2158acc2 Bug 1178851 - Move testing flag to DevToolsUtils. r=ochameau 2015-07-02 04:56:57 -05:00
Michael Layzell
f6359d6641 Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan 2015-06-30 08:18:04 -04:00
Gabriel Luong
a61aa0dd49 Bug 1176054 - Fixed vertical of the pseudo class checkbox labels on Linux and Windows r=bgrins 2015-06-26 13:39:18 -07:00
Tim Nguyen
8b215df88d Bug 1165122 - Show Add New Rule button by default. r=bgrins 2015-06-25 16:00:29 -07:00
Gabriel Luong
6db2aaebd9 Backed out changeset aa1f2a978a64 2015-06-25 16:04:40 -07:00
Tim Nguyen
4e4c369ad0 Bug 1165122 - Show Add New Rule button by default. r=bgrins 2015-06-25 16:00:29 -07:00
Gabriel Luong
ea199953ff Bug 1166959 - Allow the selector editor to advance the focus with tab, shift-tab and enter r=pbrosset 2015-06-25 15:51:52 -07:00
Gabriel Luong
e7ff4ba7be Bug 1175661 - Adding a new rule should use classList instead of splitting the className r=pbrosset 2015-06-18 09:06:56 -07:00
Patrick Brosset
bd4101800d Bug 1174407 - Collapse pseudo-elements section in rule-view by default; r=miker
This changes the default value for the devtools.inspector.show_pseudo_elements pref
to false so that the pseudo-elements section in the rule-view is collapsed by
default.
This section may now contain a lot more rules, especially when showing browser styles
and so it's better to have it collapsed by default.

This required to fix 2 tests that assumed the section was expanded by default.
browser_ruleview_pseudo-element_01.js was also cleaned up a bit to be more compliant
with our eslint rules.
2015-06-18 10:10:53 +02:00
Gabriel Luong
c38e71ce29 Bug 1173005 - Fixed margin with the pseduoclass panel and left align the pseduoclass options. r=bgrins 2015-06-14 02:16:00 -04:00
Gabriel Luong
8c97024965 Bug 1172788 - Add tooltip for pseudo class toggle button in the rule view r=bgrins 2015-06-13 13:00:53 -07:00
Jarda Snajdr
2d35539a19 Bug 1159922 - In rule view, update the computed values of a property after editing. r=pbro 2015-06-11 12:18:53 +02:00
Tim Nguyen
5658da4a9a Bug 1173298 - Disable add rule button for non-element nodes and anonymous elements. r=bgrins 2015-06-10 11:42:00 +02:00
Gabriel Luong
c4cb77dc00 Bug 1024693 - [rule view] Copy CSS declarations r=pbrosset 2015-06-10 15:08:27 -07:00
Tom Tromey
47c0d2cce1 Bug 1158288 - Show color swatch in drop-shadow function. r=pbrosset 2015-06-08 12:26:00 -04:00
Tom Tromey
3b508672ae Bug 1158288 - Minimal changes for eslint. r=pbrosset 2015-06-08 12:26:00 -04:00
Tim Nguyen
1c714ad26e Bug 1165032 - Make 'Add new rule' button add a new rule for currently emulated pseudo class locks. r=bgrins 2015-06-08 12:25:00 -04:00
Jennifer Fong
c91b01f044 Bug 1163183 - Show HTML5 Forms pseudo elements in the rule view. r=bgrins 2015-06-05 14:48:00 -04:00
Gabriel Luong
bfbd0192d5 Bug 987365 - Add pseudo-class lock options to rule view r=bgrins 2015-04-23 21:35:00 -07:00
Kyle Zentner
f45a2d8762 Bug 1170173 - Parse CSS 'contain' property. r=dholbert 2015-06-04 16:38:00 +02:00
Gabriel Luong
f5e342f0b3 Bug 1040199 - Adding a new rule for a node should handle invalid characters in the element's selector. r=pbrosset 2015-06-01 11:38:00 -04:00
Carsten "Tomcat" Book
74a0a9fbfd Backed out changeset 08eaa27485c1 (bug 1166774) for linux e10s dt failures 2015-06-02 15:52:31 +02:00
Alexandre Poirot
59c6c32d41 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset 2015-06-01 18:21:46 +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
Gabriel Luong
29ba95dc91 Bug 1139058 - Part 2: Unit test for adding unmatched rules to the rule view r=pbrosset 2015-05-27 17:36:20 -07:00
Gabriel Luong
176e823267 Bug 1139058 - Part 1: Allow unmatched rules to be added to the rule view r=pbrosset 2015-05-27 17:36:17 -07:00
Alexandre Poirot
f0c5648397 Bug 1167181 - Fix pending getOriginalLocation requests while running browser_computedview_matched-selectors_01.js. r=pbrosset 2015-05-25 22:51:45 +02:00
Phil Ringnalda
6889a8a1cb Back out b85bc83d5a15 (bug 1166774) for frequent failures in browser_ruleview_colorpicker-edit-gradient.js 2015-05-26 21:04:21 -07:00
Alexandre Poirot
3d2f8cf7d0 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset 2015-05-25 20:14:01 +02:00
Alexandre Poirot
2fadb2573e Bug 1167174 - Assert that custom highlighter do show the highlighter before proceeding. r=pbrosset 2015-05-25 18:54:08 +02:00
Julian Descottes
a5dff5425f Bug 965199 - "Copy Image Data-URL" in computed & rule views. r=pbrosset
This feature is about the inspector's rule view & computed view.
The context menu for an image URL (e.g. value of background-image property)
will contain a new entry : "Copy Image Data-URL". Clicking on it will fill the
clipboard with the image encoded as a data url.

The mechanism to hide/show the entry is inspired from the "Copy Color" menu
entry. When the context menu is displayed, check if the target is contained in
a node of type "image", using the getNodeInfo method available on both views.

If the image data cannot be retrieved for a given URL, the clipboard is filled
with an error message.

Modified rule-view getNodeInfo method in order to exclude from image nodes the
'source' links (such as 'style.css', displayed on the right of the rule-view).

Added a new mochitest that tests the feature on an element using a base64
background image.
2015-05-24 01:41:09 +02:00