From 164e113be0efaceaee544e68359373b525f57352 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Mon, 3 Apr 2017 16:19:32 +1000 Subject: [PATCH] Bug 1352763 part 1 - Constify RawServoStyleSheet. r=heycam MozReview-Commit-ID: IXWGobgV59f --HG-- extra : rebase_source : b569e1e7d30f00f300d91e465048c54024ab82f2 --- layout/style/ServoStyleSheet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout/style/ServoStyleSheet.h b/layout/style/ServoStyleSheet.h index 8555f7adf59c..242a7d626c51 100644 --- a/layout/style/ServoStyleSheet.h +++ b/layout/style/ServoStyleSheet.h @@ -32,7 +32,7 @@ struct ServoStyleSheetInner : public StyleSheetInfo ReferrerPolicy aReferrerPolicy, const dom::SRIMetadata& aIntegrity); - RefPtr mSheet; + RefPtr mSheet; }; @@ -66,10 +66,10 @@ public: */ void LoadFailed(); - RawServoStyleSheet* RawSheet() const { + const RawServoStyleSheet* RawSheet() const { return Inner()->mSheet; } - void SetSheetForImport(RawServoStyleSheet* aSheet) { + void SetSheetForImport(const RawServoStyleSheet* aSheet) { MOZ_ASSERT(!Inner()->mSheet); Inner()->mSheet = aSheet; }