mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Bug 1332353 - Make it clearer when a stylesheet is really owned by its mDocument
Tag #1375
This commit is contained in:
parent
db34da8e01
commit
5d444ef68a
13 changed files with 83 additions and 38 deletions
|
|
@ -83,9 +83,17 @@ StyleSheet::HasRules() const
|
|||
}
|
||||
|
||||
void
|
||||
StyleSheet::SetOwningDocument(nsIDocument* aDocument)
|
||||
StyleSheet::SetAssociatedDocument(nsIDocument* aDocument,
|
||||
DocumentAssociationMode aAssociationMode)
|
||||
{
|
||||
MOZ_STYLO_FORWARD(SetOwningDocument, (aDocument))
|
||||
MOZ_ASSERT(aDocument);
|
||||
MOZ_STYLO_FORWARD(SetAssociatedDocument, (aDocument, aAssociationMode))
|
||||
}
|
||||
|
||||
void
|
||||
StyleSheet::ClearAssociatedDocument()
|
||||
{
|
||||
MOZ_STYLO_FORWARD(SetAssociatedDocument, (nullptr, NotOwnedByDocument));
|
||||
}
|
||||
|
||||
StyleSheet*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue