Bug 1456680 - Part 5: Remove unused onShowGridLineNamesHighlight method. r=pbro

This commit is contained in:
Gabriel Luong 2018-04-30 14:35:43 -04:00
Родитель af33af7c5d
Коммит 60f57af35a
3 изменённых файлов: 0 добавлений и 38 удалений

Просмотреть файл

@ -27,7 +27,6 @@ class Grid extends PureComponent {
onShowBoxModelHighlighterForNode: PropTypes.func.isRequired,
onShowGridAreaHighlight: PropTypes.func.isRequired,
onShowGridCellHighlight: PropTypes.func.isRequired,
onShowGridLineNamesHighlight: PropTypes.func.isRequired,
onToggleGridHighlighter: PropTypes.func.isRequired,
onToggleShowGridAreas: PropTypes.func.isRequired,
onToggleShowGridLineNumbers: PropTypes.func.isRequired,

Просмотреть файл

@ -64,7 +64,6 @@ class GridInspector {
this.onSetGridOverlayColor = this.onSetGridOverlayColor.bind(this);
this.onShowGridAreaHighlight = this.onShowGridAreaHighlight.bind(this);
this.onShowGridCellHighlight = this.onShowGridCellHighlight.bind(this);
this.onShowGridLineNamesHighlight = this.onShowGridLineNamesHighlight.bind(this);
this.onSidebarSelect = this.onSidebarSelect.bind(this);
this.onToggleGridHighlighter = this.onToggleGridHighlighter.bind(this);
this.onToggleShowGridAreas = this.onToggleShowGridAreas.bind(this);
@ -141,7 +140,6 @@ class GridInspector {
onSetGridOverlayColor: this.onSetGridOverlayColor,
onShowGridAreaHighlight: this.onShowGridAreaHighlight,
onShowGridCellHighlight: this.onShowGridCellHighlight,
onShowGridLineNamesHighlight: this.onShowGridLineNamesHighlight,
onToggleGridHighlighter: this.onToggleGridHighlighter,
onToggleShowGridAreas: this.onToggleShowGridAreas,
onToggleShowGridLineNumbers: this.onToggleShowGridLineNumbers,
@ -568,39 +566,6 @@ class GridInspector {
this.store.dispatch(updateGridHighlighted(node, true));
}
/**
* Highlights the grid line in the CSS Grid Highlighter for the given grid.
*
* @param {NodeFront} node
* The NodeFront of the grid container element for which the grid
* highlighter is highlighted for.
* @param {Number|null} gridFragmentIndex
* The index of the grid fragment for which the grid highlighter
* is highlighted for.
* @param {String} color
* The color of the grid line for which the grid highlighter
* is highlighted for.
* @param {Number|null} lineNumber
* The line number of the grid for which the grid highlighter
* is highlighted for.
* @param {String|null} type
* The type of line for which the grid line is being highlighted for.
*/
onShowGridLineNamesHighlight(node, gridFragmentIndex, color, lineNumber, type) {
let { highlighterSettings } = this.store.getState();
highlighterSettings.showGridLineNames = {
gridFragmentIndex,
lineNumber,
type
};
highlighterSettings.color = color;
this.showGridHighlighter(node, highlighterSettings);
this.store.dispatch(updateGridHighlighted(node, true));
}
/**
* Handler for the inspector sidebar "select" event. Starts tracking reflows
* if the layout panel is visible. Otherwise, stop tracking reflows.

Просмотреть файл

@ -54,7 +54,6 @@ class LayoutView {
onSetGridOverlayColor,
onShowGridAreaHighlight,
onShowGridCellHighlight,
onShowGridLineNamesHighlight,
onToggleGridHighlighter,
onToggleShowGridAreas,
onToggleShowGridLineNumbers,
@ -76,7 +75,6 @@ class LayoutView {
onShowBoxModelHighlighterForNode,
onShowGridAreaHighlight,
onShowGridCellHighlight,
onShowGridLineNamesHighlight,
onToggleFlexboxHighlighter,
onToggleGeometryEditor,
onToggleGridHighlighter,