mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
1e6285ee24
commit
4443e3c227
@ -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;
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
|
@ -1029,7 +1029,7 @@ public:
|
||||
return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf);
|
||||
}
|
||||
|
||||
bool IsRootContentDocument();
|
||||
bool IsRootContentDocument() const;
|
||||
bool IsCrossProcessRootContentDocument();
|
||||
|
||||
bool IsGlyph() const {
|
||||
|
Loading…
Reference in New Issue
Block a user