зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1553194 - Remove unrelated code comment from shared/css-logic.js r=pbro
Depends on D32016 The code comment is perhaps a leftover from a file duplication to extract shared methods to `shared/inspector/css-logic.js` from `server/actors/inspector/css-logic.js`. The comment is confusing because there is no usage of any of the CssLogic terminology within the file. Differential Revision: https://phabricator.services.mozilla.com/D32017 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
915619d9c1
Коммит
ff22a40fa6
|
@ -9,31 +9,6 @@
|
|||
const InspectorUtils = require("InspectorUtils");
|
||||
|
||||
const MAX_DATA_URL_LENGTH = 40;
|
||||
|
||||
/*
|
||||
* About the objects defined in this file:
|
||||
* - CssLogic contains style information about a view context. It provides
|
||||
* access to 2 sets of objects: Css[Sheet|Rule|Selector] provide access to
|
||||
* information that does not change when the selected element changes while
|
||||
* Css[Property|Selector]Info provide information that is dependent on the
|
||||
* selected element.
|
||||
* Its key methods are highlight(), getPropertyInfo() and forEachSheet(), etc
|
||||
* It also contains a number of static methods for l10n, naming, etc
|
||||
*
|
||||
* - CssSheet provides a more useful API to a DOM CSSSheet for our purposes,
|
||||
* including shortSource and href.
|
||||
* - CssRule a more useful API to a DOM CSSRule including access to the group
|
||||
* of CssSelectors that the rule provides properties for
|
||||
* - CssSelector A single selector - i.e. not a selector group. In other words
|
||||
* a CssSelector does not contain ','. This terminology is different from the
|
||||
* standard DOM API, but more inline with the definition in the spec.
|
||||
*
|
||||
* - CssPropertyInfo contains style information for a single property for the
|
||||
* highlighted element.
|
||||
* - CssSelectorInfo is a wrapper around CssSelector, which adds sorting with
|
||||
* reference to the selected element.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provide access to the style information in a page.
|
||||
* CssLogic uses the standard DOM API, and the Gecko InspectorUtils API to
|
||||
|
|
Загрузка…
Ссылка в новой задаче