Bug 1247098 - Mark nsIPresShell::GetResolution and nsPresContext::IsRootContentDocument as const. r=tnikkel

MozReview-Commit-ID: 5IXm4EUy7IN

--HG--
extra : rebase_source : 7028a908adcb36828a58bb3ad7403559cfad9eb2
This commit is contained in:
Jamie Nicol 2016-02-24 14:57:43 +00:00
parent 1e6285ee24
commit 4443e3c227
3 changed files with 3 additions and 3 deletions

View File

@ -1401,7 +1401,7 @@ public:
* The resolution defaults to 1.0.
*/
virtual nsresult SetResolution(float aResolution) = 0;
float GetResolution() { return mResolution.valueOr(1.0); }
float GetResolution() const { return mResolution.valueOr(1.0); }
virtual float GetCumulativeResolution() = 0;
/**

View File

@ -2941,7 +2941,7 @@ nsPresContext::SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const
}
bool
nsPresContext::IsRootContentDocument()
nsPresContext::IsRootContentDocument() const
{
// We are a root content document if: we are not a resource doc, we are
// not chrome, and we either have no parent or our parent is chrome.

View File

@ -1029,7 +1029,7 @@ public:
return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf);
}
bool IsRootContentDocument();
bool IsRootContentDocument() const;
bool IsCrossProcessRootContentDocument();
bool IsGlyph() const {