Closed Bug 1357705 (stylo-inidomutils) Opened 7 years ago Closed 7 years ago

[meta] Stylo: Investigate inIDOMUtils APIs used by DevTools

Categories

(Core :: CSS Parsing and Computation, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: jryans, Unassigned)

References

Details

(Keywords: meta)

DevTools currently uses[1] the following APIs from inIDOMUtils[2], some of which may need Stylo specific support:

Already updated for Stylo:

* getCSSStyleRules (bug 1346256)
* getAllStyleSheet (bug 1322661)

Appears to use Gecko style objects, probably needs updating for Stylo:

* parseStyleSheet
* selectorMatchesElement

Appears to use shared style objects, but Stylo passes invalid data:

* getRuleLine (line is always set to 0)
* getRuleColumn (column is always set to 0)
* getRelativeRuleLine (line is always set to 0)

Appears to only query static style data, could be deferred:

* getCSSPseudoElementNames
* isValidCSSColor
* getCSSPropertyNames
* getCSSValuesForProperty
* getSubpropertiesForCSSProperty
* isInheritedProperty
* cssPropertyIsShorthand
* cssPropertySupportsType
* cssPropertyIsValid
* getCSSLexer

Appears to poke element state, seems correctly forwarded to Stylo:

* hasPseudoClassLock
* addPseudoClassLock
* removePseudoClassLock
* clearPseudoClassLocks

Seems unrelated to Stylo:

* getUsedFontFaces

[1]: http://searchfox.org/mozilla-central/search?q=%5CbDOMUtils%5Cb&case=true&regexp=true&path=devtools
[2]: http://searchfox.org/mozilla-central/source/layout/inspector/inIDOMUtils.idl
Clearing priority for now, so it appears on :bholley's triage, but probably P2?
Priority: P2 → --
Priority: -- → P2
Looks like I missed a few originally.

Appears to use Gecko style objects, probably needs updating for Stylo:

* getSelectorCount
* getSelectorText
* getSpecificity

Seems unrelated to Stylo:

* colorToRGBA
Alias: stylo-inidomutils
Keywords: meta
Priority: P2 → P5
Summary: Stylo: Investigate inIDOMUtils APIs used by DevTools → [meta] Stylo: Investigate inIDOMUtils APIs used by DevTools
It seems like we've covered the APIs we need here, great work all! \o/
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.