2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsIPercentHeightObserver_h___
|
|
|
|
#define nsIPercentHeightObserver_h___
|
|
|
|
|
2009-01-12 11:20:59 -08:00
|
|
|
#include "nsQueryFrame.h"
|
|
|
|
|
2007-03-22 10:30:00 -07: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
|
|
|
|
* table cells support this.
|
|
|
|
*/
|
2009-01-12 11:20:59 -08:00
|
|
|
class nsIPercentHeightObserver
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2009-09-12 09:49:24 -07:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIPercentHeightObserver)
|
2007-03-22 10:30:00 -07: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-28 23:19:26 -07:00
|
|
|
virtual bool NeedsToObserve(const nsHTMLReflowState& aReflowState) = 0;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsIPercentHeightObserver_h___
|