Bug 1247554 - Mark nsPresContext::GetVisibleArea as const; r=mattwoodrow draft
authorJamie Nicol <jnicol@mozilla.com>
Thu, 18 Feb 2016 15:13:35 +0000
changeset 331877 4f2fc07e4f89cfa37c4530a6454196f2e776ff2f
parent 331237 6ea654cad929c9bedd8a4161a182b6189fbeae6a
child 331878 29f772473064bb31decd19486de3dcf6206da17f
child 331968 fdb41202cfb65c21372e3aaf4c48dc8018c8ca9a
child 332164 f3727019331ae4698be824b1fe81c255f83aae51
push id11110
push userbmo:jnicol@mozilla.com
push dateThu, 18 Feb 2016 18:06:47 +0000
reviewersmattwoodrow
bugs1247554
milestone47.0a1
Bug 1247554 - Mark nsPresContext::GetVisibleArea as const; r=mattwoodrow MozReview-Commit-ID: 57Ghhfcmxkr
layout/base/nsPresContext.h
--- a/layout/base/nsPresContext.h
+++ b/layout/base/nsPresContext.h
@@ -450,17 +450,17 @@ public:
   virtual void Detach();
 
   /**
    * Get the visible area associated with this presentation context.
    * This is the size of the visible area that is used for
    * presenting the document. The returned value is in the standard
    * nscoord units (as scaled by the device context).
    */
-  nsRect GetVisibleArea() { return mVisibleArea; }
+  nsRect GetVisibleArea() const { return mVisibleArea; }
 
   /**
    * Set the currently visible area. The units for r are standard
    * nscoord units (as scaled by the device context).
    */
   void SetVisibleArea(const nsRect& r) {
     if (!r.IsEqualEdges(mVisibleArea)) {
       mVisibleArea = r;