Loading dom/base/Document.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -12986,7 +12986,8 @@ already_AddRefed<Document> Document::CreateStaticClone( RefPtr<StyleSheet> sheet = SheetAt(i); if (sheet) { if (sheet->IsApplicable()) { RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, clonedDoc); RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, nullptr, clonedDoc, nullptr); NS_WARNING_ASSERTION(clonedSheet, "Cloning a stylesheet didn't work!"); if (clonedSheet) { clonedDoc->AddStyleSheet(clonedSheet); Loading @@ -13000,7 +13001,8 @@ already_AddRefed<Document> Document::CreateStaticClone( auto& sheets = mAdditionalSheets[additionalSheetType(t)]; for (StyleSheet* sheet : sheets) { if (sheet->IsApplicable()) { RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, clonedDoc); RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, nullptr, clonedDoc, nullptr); NS_WARNING_ASSERTION(clonedSheet, "Cloning a stylesheet didn't work!"); if (clonedSheet) { clonedDoc->AddAdditionalStyleSheet(additionalSheetType(t), Loading dom/base/ShadowRoot.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -107,7 +107,8 @@ void ShadowRoot::CloneInternalDataFrom(ShadowRoot* aOther) { for (size_t i = 0; i < sheetCount; ++i) { StyleSheet* sheet = aOther->SheetAt(i); if (sheet->IsApplicable()) { RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, this); RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, nullptr, this, nullptr); if (clonedSheet) { AppendStyleSheet(*clonedSheet.get()); } Loading dom/webidl/CSSImportRule.webidl +1 −1 Original line number Diff line number Diff line Loading @@ -17,5 +17,5 @@ interface CSSImportRule : CSSRule { [SameObject, PutForwards=mediaText] readonly attribute MediaList? media; // Per spec, the .styleSheet is never null, but in our implementation it can // be. See <https://bugzilla.mozilla.org/show_bug.cgi?id=1326509>. [SameObject, BinaryName="styleSheetForBindings"] readonly attribute CSSStyleSheet? styleSheet; [SameObject] readonly attribute CSSStyleSheet? styleSheet; }; layout/inspector/ServoStyleRuleMap.cpp +0 −6 Original line number Diff line number Diff line Loading @@ -45,12 +45,6 @@ void ServoStyleRuleMap::SheetAdded(StyleSheet& aStyleSheet) { } } void ServoStyleRuleMap::SheetCloned(StyleSheet& aStyleSheet) { // Invalidate all data inside. We could probably track down all the individual // rules that changed etc, but it doesn't seem worth it. mTable.Clear(); } void ServoStyleRuleMap::SheetRemoved(StyleSheet& aStyleSheet) { // Invalidate all data inside. This isn't strictly necessary since // we should always get update from document before new queries come. Loading layout/inspector/ServoStyleRuleMap.h +0 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ class ServoStyleRuleMap { void SheetAdded(StyleSheet&); void SheetRemoved(StyleSheet&); void SheetCloned(StyleSheet&); void RuleAdded(StyleSheet& aStyleSheet, css::Rule&); void RuleRemoved(StyleSheet& aStyleSheet, css::Rule&); Loading Loading
dom/base/Document.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -12986,7 +12986,8 @@ already_AddRefed<Document> Document::CreateStaticClone( RefPtr<StyleSheet> sheet = SheetAt(i); if (sheet) { if (sheet->IsApplicable()) { RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, clonedDoc); RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, nullptr, clonedDoc, nullptr); NS_WARNING_ASSERTION(clonedSheet, "Cloning a stylesheet didn't work!"); if (clonedSheet) { clonedDoc->AddStyleSheet(clonedSheet); Loading @@ -13000,7 +13001,8 @@ already_AddRefed<Document> Document::CreateStaticClone( auto& sheets = mAdditionalSheets[additionalSheetType(t)]; for (StyleSheet* sheet : sheets) { if (sheet->IsApplicable()) { RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, clonedDoc); RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, nullptr, clonedDoc, nullptr); NS_WARNING_ASSERTION(clonedSheet, "Cloning a stylesheet didn't work!"); if (clonedSheet) { clonedDoc->AddAdditionalStyleSheet(additionalSheetType(t), Loading
dom/base/ShadowRoot.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -107,7 +107,8 @@ void ShadowRoot::CloneInternalDataFrom(ShadowRoot* aOther) { for (size_t i = 0; i < sheetCount; ++i) { StyleSheet* sheet = aOther->SheetAt(i); if (sheet->IsApplicable()) { RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, this); RefPtr<StyleSheet> clonedSheet = sheet->Clone(nullptr, nullptr, this, nullptr); if (clonedSheet) { AppendStyleSheet(*clonedSheet.get()); } Loading
dom/webidl/CSSImportRule.webidl +1 −1 Original line number Diff line number Diff line Loading @@ -17,5 +17,5 @@ interface CSSImportRule : CSSRule { [SameObject, PutForwards=mediaText] readonly attribute MediaList? media; // Per spec, the .styleSheet is never null, but in our implementation it can // be. See <https://bugzilla.mozilla.org/show_bug.cgi?id=1326509>. [SameObject, BinaryName="styleSheetForBindings"] readonly attribute CSSStyleSheet? styleSheet; [SameObject] readonly attribute CSSStyleSheet? styleSheet; };
layout/inspector/ServoStyleRuleMap.cpp +0 −6 Original line number Diff line number Diff line Loading @@ -45,12 +45,6 @@ void ServoStyleRuleMap::SheetAdded(StyleSheet& aStyleSheet) { } } void ServoStyleRuleMap::SheetCloned(StyleSheet& aStyleSheet) { // Invalidate all data inside. We could probably track down all the individual // rules that changed etc, but it doesn't seem worth it. mTable.Clear(); } void ServoStyleRuleMap::SheetRemoved(StyleSheet& aStyleSheet) { // Invalidate all data inside. This isn't strictly necessary since // we should always get update from document before new queries come. Loading
layout/inspector/ServoStyleRuleMap.h +0 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ class ServoStyleRuleMap { void SheetAdded(StyleSheet&); void SheetRemoved(StyleSheet&); void SheetCloned(StyleSheet&); void RuleAdded(StyleSheet& aStyleSheet, css::Rule&); void RuleRemoved(StyleSheet& aStyleSheet, css::Rule&); Loading