From 3cc6289c461af2c5553b69d1cc47810cf938e11b Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Thu, 21 Jan 2016 16:21:23 +1100 Subject: [PATCH] Bug 1241373 - Make nsStyleSet::GetAuthorStyleDisabled const. r=dholbert --- layout/style/nsStyleSet.cpp | 2 +- layout/style/nsStyleSet.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/style/nsStyleSet.cpp b/layout/style/nsStyleSet.cpp index 8ec75c250f99..fdd37d3d5ed8 100644 --- a/layout/style/nsStyleSet.cpp +++ b/layout/style/nsStyleSet.cpp @@ -691,7 +691,7 @@ nsStyleSet::DirtyRuleProcessors(SheetType aType) } bool -nsStyleSet::GetAuthorStyleDisabled() +nsStyleSet::GetAuthorStyleDisabled() const { return mAuthorStyleDisabled; } diff --git a/layout/style/nsStyleSet.h b/layout/style/nsStyleSet.h index deaebb333f7d..2af75dc1abfb 100644 --- a/layout/style/nsStyleSet.h +++ b/layout/style/nsStyleSet.h @@ -326,7 +326,7 @@ class nsStyleSet final mozilla::CSSStyleSheet* aReferenceSheet); // Enable/Disable entire author style level (Doc, ScopedDoc & PresHint levels) - bool GetAuthorStyleDisabled(); + bool GetAuthorStyleDisabled() const; nsresult SetAuthorStyleDisabled(bool aStyleDisabled); int32_t SheetCount(mozilla::SheetType aType) const {