2001-12-06 23:19:53 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-12-06 23:19:53 +00:00
|
|
|
|
2015-06-22 09:33:34 +00:00
|
|
|
#ifndef nsIPercentBSizeObserver_h___
|
|
|
|
#define nsIPercentBSizeObserver_h___
|
2001-12-06 23:19:53 +00:00
|
|
|
|
2009-01-12 19:20:59 +00:00
|
|
|
#include "nsQueryFrame.h"
|
|
|
|
|
2001-12-07 14:51:12 +00:00
|
|
|
struct nsHTMLReflowState;
|
|
|
|
|
|
|
|
/**
|
2015-06-22 09:33:34 +00:00
|
|
|
* This interface is supported by frames that need to provide computed bsize
|
|
|
|
* values to children during reflow which would otherwise not happen. Currently
|
|
|
|
* only table cells support this.
|
2001-12-07 14:51:12 +00:00
|
|
|
*/
|
2015-06-22 09:33:34 +00:00
|
|
|
class nsIPercentBSizeObserver
|
2001-12-07 14:51:12 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-06-22 09:33:34 +00:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIPercentBSizeObserver)
|
2001-12-07 14:51:12 +00:00
|
|
|
|
2015-06-22 09:33:34 +00:00
|
|
|
// Notify the observer that aReflowState has no computed bsize,
|
|
|
|
// but it has a percent bsize
|
|
|
|
virtual void NotifyPercentBSize(const nsHTMLReflowState& aReflowState) = 0;
|
2002-04-10 21:32:41 +00:00
|
|
|
|
|
|
|
// Ask the observer if it should observe aReflowState.frame
|
2011-09-29 06:19:26 +00:00
|
|
|
virtual bool NeedsToObserve(const nsHTMLReflowState& aReflowState) = 0;
|
2001-12-07 14:51:12 +00:00
|
|
|
};
|
2001-12-06 23:19:53 +00:00
|
|
|
|
2015-06-22 09:33:34 +00:00
|
|
|
#endif // nsIPercentBSizeObserver_h___
|