Bug 1304302 part 2 - Some small fixes. r=heycam
MozReview-Commit-ID: 7rnl4wkMorC
This commit is contained in:
@@ -1121,7 +1121,7 @@ Loader::CreateSheet(nsIURI* aURI,
|
||||
// Then our per-document complete sheets.
|
||||
URIPrincipalReferrerPolicyAndCORSModeHashKey key(aURI, aLoaderPrincipal, aCORSMode, aReferrerPolicy);
|
||||
|
||||
StyleSheetHandle completeSheet;
|
||||
StyleSheetHandle completeSheet = nullptr;
|
||||
mSheets->mCompleteSheets.Get(&key, &completeSheet);
|
||||
sheet = completeSheet;
|
||||
LOG((" From completed: %p", sheet->AsVoidPtr()));
|
||||
|
||||
@@ -32,7 +32,7 @@ ServoStyleSheet::IsApplicable() const
|
||||
bool
|
||||
ServoStyleSheet::HasRules() const
|
||||
{
|
||||
return Servo_StyleSheet_HasRules(RawSheet());
|
||||
return mSheet && Servo_StyleSheet_HasRules(mSheet);
|
||||
}
|
||||
|
||||
nsIDocument*
|
||||
|
||||
@@ -171,6 +171,7 @@ StyleSheetHandle::Ptr::List(FILE* aOut, int32_t aIndex) const
|
||||
#endif
|
||||
|
||||
#undef FORWARD
|
||||
#undef FORWARD_CONCRETE
|
||||
|
||||
inline void
|
||||
ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback,
|
||||
|
||||
Reference in New Issue
Block a user