2017-10-27 20:33:53 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
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
|
|
|
|
2015-06-22 12:33:34 +03:00
|
|
|
#ifndef nsIPercentBSizeObserver_h___
|
|
|
|
#define nsIPercentBSizeObserver_h___
|
2001-12-07 02:19:53 +03:00
|
|
|
|
2009-01-12 22:20:59 +03:00
|
|
|
#include "nsQueryFrame.h"
|
|
|
|
|
2016-07-21 13:36:34 +03:00
|
|
|
namespace mozilla {
|
2016-07-21 13:36:35 +03:00
|
|
|
struct ReflowInput;
|
2016-07-21 13:36:34 +03:00
|
|
|
} // namespace mozilla
|
2001-12-07 17:51:12 +03:00
|
|
|
|
|
|
|
/**
|
2015-06-22 12:33:34 +03: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 17:51:12 +03:00
|
|
|
*/
|
2015-06-22 12:33:34 +03:00
|
|
|
class nsIPercentBSizeObserver {
|
2001-12-07 17:51:12 +03:00
|
|
|
public:
|
2015-06-22 12:33:34 +03:00
|
|
|
NS_DECL_QUERYFRAME_TARGET(nsIPercentBSizeObserver)
|
2001-12-07 17:51:12 +03:00
|
|
|
|
2016-07-21 13:36:39 +03:00
|
|
|
// Notify the observer that aReflowInput has no computed bsize,
|
2015-06-22 12:33:34 +03:00
|
|
|
// but it has a percent bsize
|
2016-07-21 13:36:39 +03:00
|
|
|
virtual void NotifyPercentBSize(const mozilla::ReflowInput& aReflowInput) = 0;
|
2002-04-11 01:32:41 +04:00
|
|
|
|
2016-07-21 13:36:39 +03:00
|
|
|
// Ask the observer if it should observe aReflowInput.frame
|
|
|
|
virtual bool NeedsToObserve(const mozilla::ReflowInput& aReflowInput) = 0;
|
2001-12-07 17:51:12 +03:00
|
|
|
};
|
2001-12-07 02:19:53 +03:00
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
#endif // nsIPercentBSizeObserver_h___
|