Commit b72448db authored by Chris H-C's avatar Chris H-C
Browse files

Bug 1249664 - Save dropped-down state in nsPresState. r=dbaron

nsComboboxControlFrame will need some place to store its dropped-down state.
Instead of using nsISupportsPRBool and SetStateProperty, just add a bool.

MozReview-Commit-ID: CEnshCbqEV1

--HG--
extra : rebase_source : 6c4cef994ef85a1de2ff3aa40ad70bb150af9d09
parent 550ae0a5
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ public:
    , mScaleToResolution(false)
    , mDisabledSet(false)
    , mDisabled(false)
    , mDroppedDown(false)
  {}

  void SetScrollState(const nsPoint& aState)
@@ -89,6 +90,16 @@ public:
    mContentData = aProperty;
  }

  void SetDroppedDown(bool aDroppedDown)
  {
    mDroppedDown = aDroppedDown;
  }

  bool GetDroppedDown() const
  {
    return mDroppedDown;
  }

// MEMBER VARIABLES
protected:
  nsCOMPtr<nsISupports> mContentData;
@@ -97,6 +108,7 @@ protected:
  bool mScaleToResolution;
  bool mDisabledSet;
  bool mDisabled;
  bool mDroppedDown;
};

#endif /* nsPresState_h_ */