|
Lines 1-3
a/Source/WebInspectorUI/ChangeLog_sec1
|
|
|
1 |
2017-06-09 Devin Rousso <drousso@apple.com> |
| 2 |
|
| 3 |
Web Inspector: Add grid to images to clarify transparency and image size |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=173184 |
| 5 |
|
| 6 |
Reviewed by NOBODY (OOPS!). |
| 7 |
|
| 8 |
* Localizations/en.lproj/localizedStrings.js: |
| 9 |
|
| 10 |
* UserInterface/Base/Setting.js: |
| 11 |
Add setting for controlling the image grid. |
| 12 |
|
| 13 |
* UserInterface/Images/NavigationItemCheckers.svg: Added. |
| 14 |
|
| 15 |
* UserInterface/Views/ImageResourceContentView.css: |
| 16 |
(.content-view.resource.image): |
| 17 |
(.content-view.resource.image img): |
| 18 |
Replace the border spacing around the image with padding on the container. This is required |
| 19 |
because a border will extend the area that is effected by `background-image`, meaning that |
| 20 |
the checkerboard would appear in that area as well, giving misleading information as to the |
| 21 |
size of the image. |
| 22 |
|
| 23 |
* UserInterface/Views/ImageResourceContentView.js: |
| 24 |
(WebInspector.ImageResourceContentView): |
| 25 |
(WebInspector.ImageResourceContentView.prototype.get navigationItems): Added. |
| 26 |
(WebInspector.ImageResourceContentView.prototype.contentAvailable): |
| 27 |
(WebInspector.ImageResourceContentView.prototype.shown): Added. |
| 28 |
(WebInspector.ImageResourceContentView.prototype._toggleImageGrid): Added. |
| 29 |
(WebInspector.ImageResourceContentView.prototype._showGridButtonClicked): Added. |
| 30 |
(WebInspector.ImageResourceContentView.prototype.get imageElement): Deleted. |
| 31 |
Apply the CSS class for showing the grid when the added navigation item is activated. |
| 32 |
|
| 33 |
* UserInterface/Views/Main.css: |
| 34 |
(img.show-grid): |
| 35 |
Generates a checkerboard pattern via `background-image` using the following process: |
| 36 |
- four `linear-gradients` are drawn, one in each corner |
| 37 |
- each draws one half of a 20x20 square, specified by `background-size` |
| 38 |
- they are then repositioned using `background-position` so that the two halfs align |
| 39 |
+------+ \--2 |
| 40 |
|1 /\ 2| |\ | |
| 41 |
| / \ | => | \| |
| 42 |
|/ \| => 4--\ |
| 43 |
|\ /| => 1--/ |
| 44 |
| \ / | => | /| |
| 45 |
|4 \/ 3| |/ | |
| 46 |
+------+ /--3 |
| 47 |
|
| 1 |
2017-06-07 Devin Rousso <drousso@apple.com> |
48 |
2017-06-07 Devin Rousso <drousso@apple.com> |
| 2 |
|
49 |
|
| 3 |
Web Inspector: Add ContextMenu item to log WebSocket object to console |
50 |
Web Inspector: Add ContextMenu item to log WebSocket object to console |