2001-12-07 02:19:53 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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-07 02:19:53 +03:00
|
|
|
|
|
|
|
#ifndef nsIPercentHeightObserver_h___
|
|
|
|
#define nsIPercentHeightObserver_h___
|
|
|
|
|
2009-01-12 22:20:59 +03:00
|
|
|
#include "nsQueryFrame.h"
|
|
|
|
|
2001-12-07 17:51:12 +03:00
|
|
|
struct nsHTMLReflowState;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This interface is supported by frames that need to provide computed height
|
|
|
|
* values to children during reflow which would otherwise not happen. Currently only
|
2002-04-11 01:32:41 +04:00
|
|
|
* table cells support this.
|
2001-12-07 17:51:12 +03:00
|
|
|
*/
|
2009-01-12 22:20:59 +03:00
|
|
|
class nsIPercentHeightObserver
|
2001-12-07 17:51:12 +03:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIPercentHeightObserver)
|
2001-12-07 17:51:12 +03:00
|
|
|
|
2002-04-11 01:32:41 +04:00
|
|
|
// Notify the observer that aReflowState has no computed height, but it has a percent height
|
|
|
|
virtual void NotifyPercentHeight(const nsHTMLReflowState& aReflowState) = 0;
|
|
|
|
|
|
|
|
// Ask the observer if it should observe aReflowState.frame
|
2011-09-29 10:19:26 +04:00
|
|
|
virtual bool NeedsToObserve(const nsHTMLReflowState& aReflowState) = 0;
|
2001-12-07 17:51:12 +03:00
|
|
|
};
|
2001-12-07 02:19:53 +03:00
|
|
|
|
|
|
|
#endif // nsIPercentHeightObserver_h___
|