diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 05:46:23 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 05:46:23 -0400 |
commit | 2e2190a5044943bde31679996afdc3558d22231b (patch) | |
tree | 898dd347d142825ae8b7db30b6172a2a1271a2b3 /layout/style/StyleSheet.cpp | |
parent | ea3a2ce279f92457bfd6168f97b106be193ea740 (diff) | |
download | UXP-2e2190a5044943bde31679996afdc3558d22231b.tar UXP-2e2190a5044943bde31679996afdc3558d22231b.tar.gz UXP-2e2190a5044943bde31679996afdc3558d22231b.tar.lz UXP-2e2190a5044943bde31679996afdc3558d22231b.tar.xz UXP-2e2190a5044943bde31679996afdc3558d22231b.zip |
Bug 1332353 - Make it clearer when a stylesheet is really owned by its mDocument
Tag #1375
Diffstat (limited to 'layout/style/StyleSheet.cpp')
-rw-r--r-- | layout/style/StyleSheet.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layout/style/StyleSheet.cpp b/layout/style/StyleSheet.cpp index fa4beeb36..f125cf97e 100644 --- a/layout/style/StyleSheet.cpp +++ b/layout/style/StyleSheet.cpp @@ -24,6 +24,7 @@ StyleSheet::StyleSheet(StyleBackendType aType, css::SheetParsingMode aParsingMod , mParsingMode(aParsingMode) , mType(aType) , mDisabled(false) + , mDocumentAssociationMode(NotOwnedByDocument) { } @@ -36,6 +37,9 @@ StyleSheet::StyleSheet(const StyleSheet& aCopy, , mParsingMode(aCopy.mParsingMode) , mType(aCopy.mType) , mDisabled(aCopy.mDisabled) + // We only use this constructor during cloning. It's the cloner's + // responsibility to notify us if we end up being owned by a document. + , mDocumentAssociationMode(NotOwnedByDocument) { } |