Bug 1294918 - Add helper method nsIFrame::IsFixedPosContainingBlock. r=dholbert
authorL. David Baron <dbaron@dbaron.org>
Fri, 12 Aug 2016 18:39:45 -0700
changeset 400804 007da1b524401b3246becd00050d97a154b1cff9
parent 400803 7642adce5bffb87123f2d490b4aed542a8c4eda7
child 400805 695f4691352c0664e5dfb12f73bd0e1b1d9f8a9b
push id26289
push userbmo:npancholi@mozilla.com
push dateMon, 15 Aug 2016 22:10:02 +0000
reviewersdholbert
bugs1294918
milestone51.0a1
Bug 1294918 - Add helper method nsIFrame::IsFixedPosContainingBlock. r=dholbert MozReview-Commit-ID: 6Bt1y176lAG
layout/generic/nsIFrame.h
layout/generic/nsIFrameInlines.h
--- a/layout/generic/nsIFrame.h
+++ b/layout/generic/nsIFrame.h
@@ -3171,16 +3171,17 @@ public:
   inline bool IsTableCaption() const;
 
   inline bool IsBlockInside() const;
   inline bool IsBlockOutside() const;
   inline bool IsInlineOutside() const;
   inline uint8_t GetDisplay() const;
   inline bool IsFloating() const;
   inline bool IsAbsPosContainingBlock() const;
+  inline bool IsFixedPosContainingBlock() const;
   inline bool IsRelativelyPositioned() const;
   inline bool IsAbsolutelyPositioned() const;
 
   /**
    * Returns the vertical-align value to be used for layout, if it is one
    * of the enumerated values.  If this is an SVG text frame, it returns a value
    * that corresponds to the value of dominant-baseline.  If the
    * vertical-align property has length or percentage value, this returns
--- a/layout/generic/nsIFrameInlines.h
+++ b/layout/generic/nsIFrameInlines.h
@@ -50,16 +50,22 @@ nsIFrame::IsFloating() const
 
 bool
 nsIFrame::IsAbsPosContainingBlock() const
 {
   return StyleDisplay()->IsAbsPosContainingBlock(this);
 }
 
 bool
+nsIFrame::IsFixedPosContainingBlock() const
+{
+  return StyleDisplay()->IsFixedPosContainingBlock(this);
+}
+
+bool
 nsIFrame::IsRelativelyPositioned() const
 {
   return StyleDisplay()->IsRelativelyPositioned(this);
 }
 
 bool
 nsIFrame::IsAbsolutelyPositioned() const
 {