layout/base/nsIPercentBSizeObserver.h
author Mike Hommey <mh+mozilla@glandium.org>
Wed, 16 Jan 2019 21:44:54 +0000
changeset 514172 e0fd6ca971ae522dd9398d49f564fe3f7263112b
parent 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1520377 - Replace/Inline subconfigure.{prefix_lines,execute_and_prefix}. r=nalexander Use an I/O wrapper on the configure output handler to add the "js/src>" prefix. Depends on D16643 Differential Revision: https://phabricator.services.mozilla.com/D16644

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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/. */

#ifndef nsIPercentBSizeObserver_h___
#define nsIPercentBSizeObserver_h___

#include "nsQueryFrame.h"

namespace mozilla {
struct ReflowInput;
}  // namespace mozilla

/**
 * 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.
 */
class nsIPercentBSizeObserver {
 public:
  NS_DECL_QUERYFRAME_TARGET(nsIPercentBSizeObserver)

  // Notify the observer that aReflowInput has no computed bsize,
  // but it has a percent bsize
  virtual void NotifyPercentBSize(const mozilla::ReflowInput& aReflowInput) = 0;

  // Ask the observer if it should observe aReflowInput.frame
  virtual bool NeedsToObserve(const mozilla::ReflowInput& aReflowInput) = 0;
};

#endif  // nsIPercentBSizeObserver_h___