mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 1367306 part 1 - Add an attribute in nsIDOMWindowUtils to check whether the document is styled by stylo. r=bholley
MozReview-Commit-ID: 6ed78DkzmT8 --HG-- extra : rebase_source : 52171f9e97a4472f6c2bed773aac16acb7289052
This commit is contained in:
parent
65c5851591
commit
e747170dc5
@ -4342,6 +4342,14 @@ nsDOMWindowUtils::GetDirectionFromText(const nsAString& aString, int32_t* aRetva
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetIsStyledByServo(bool* aStyledByServo)
|
||||
{
|
||||
nsIDocument* doc = GetDocument();
|
||||
*aStyledByServo = doc && doc->IsStyledByServo();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(nsTranslationNodeList)
|
||||
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
||||
NS_INTERFACE_MAP_ENTRY(nsITranslationNodeList)
|
||||
|
@ -2026,6 +2026,13 @@ interface nsIDOMWindowUtils : nsISupports {
|
||||
*/
|
||||
long getDirectionFromText(in AString aString);
|
||||
|
||||
/**
|
||||
* Whether the current document is styled by Servo's style engine.
|
||||
*
|
||||
* This calls nsIDocument::IsStyledByServo().
|
||||
*/
|
||||
readonly attribute boolean isStyledByServo;
|
||||
|
||||
// These consts are only for testing purposes.
|
||||
const long DEFAULT_MOUSE_POINTER_ID = 0;
|
||||
const long DEFAULT_PEN_POINTER_ID = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user