Bug 1341086 - Part 2: stylo: Support all non-ts pseudos with an argument; r=emilio,heycam

MozReview-Commit-ID: IHjX2Q3k8eD
This commit is contained in:
Manish Goregaokar
2017-03-16 14:10:22 -07:00
parent 5685680f53
commit de1687e9f8
9 changed files with 81 additions and 18 deletions

View File

@@ -141,9 +141,8 @@ public:
* parses but does not match. Asserts if it fails to parse; only
* call this when you're sure it's a string-like pseudo.
*
* This will assert if the document has a stale document state,
* ensure that UpdatePossiblyStaleDocumentState() has been called
* first.
* In Servo mode, please ensure that UpdatePossiblyStaleDocumentState()
* has been called first.
*
* @param aElement The element we are trying to match
* @param aPseudo The name of the pseudoselector
@@ -156,12 +155,13 @@ public:
* @param aDependence Pointer to be set to true if we ignored a state due to
* aStateMask. Can be null.
*/
static bool StringPseudoMatches(mozilla::dom::Element* aElement,
static bool StringPseudoMatches(const mozilla::dom::Element* aElement,
mozilla::CSSPseudoClassType aPseudo,
char16_t* aString,
nsIDocument* aDocument,
const char16_t* aString,
const nsIDocument* aDocument,
bool aForStyling,
mozilla::EventStates aStateMask,
bool* aSetSlowSelectorFlag,
bool* const aDependence = nullptr);
// nsIStyleRuleProcessor