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/. */
|
1999-09-03 18:25:15 +04:00
|
|
|
#ifndef nsSelectsAreaFrame_h___
|
|
|
|
#define nsSelectsAreaFrame_h___
|
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2008-12-29 18:07:38 +03:00
|
|
|
#include "nsBlockFrame.h"
|
1999-09-03 18:25:15 +04:00
|
|
|
|
2008-12-29 18:07:38 +03:00
|
|
|
class nsSelectsAreaFrame : public nsBlockFrame
|
1999-09-03 18:25:15 +04:00
|
|
|
{
|
|
|
|
public:
|
2017-05-26 13:11:11 +03:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsSelectsAreaFrame)
|
2009-09-12 20:49:24 +04:00
|
|
|
|
2014-05-25 02:20:40 +04:00
|
|
|
friend nsContainerFrame* NS_NewSelectsAreaFrame(nsIPresShell* aShell,
|
2018-03-22 21:20:41 +03:00
|
|
|
ComputedStyle* aStyle,
|
2014-05-25 02:20:40 +04:00
|
|
|
nsFrameState aFlags);
|
1999-09-03 18:25:15 +04:00
|
|
|
|
2013-02-14 15:12:27 +04:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
2015-03-21 19:28:04 +03:00
|
|
|
const nsDisplayListSet& aLists) override;
|
1999-09-03 18:25:15 +04:00
|
|
|
|
2013-02-14 15:12:27 +04:00
|
|
|
void BuildDisplayListInternal(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsDisplayListSet& aLists);
|
1999-09-03 18:25:15 +04:00
|
|
|
|
2014-05-13 04:47:52 +04:00
|
|
|
virtual void Reflow(nsPresContext* aCX,
|
2016-07-21 13:36:38 +03:00
|
|
|
ReflowOutput& aDesiredSize,
|
2016-07-21 13:36:39 +03:00
|
|
|
const ReflowInput& aReflowInput,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsReflowStatus& aStatus) override;
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 08:38:33 +03:00
|
|
|
|
2015-02-08 18:31:14 +03:00
|
|
|
nscoord BSizeOfARow() const { return mBSizeOfARow; }
|
2017-07-06 15:00:35 +03:00
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
protected:
|
2018-03-22 21:20:41 +03:00
|
|
|
explicit nsSelectsAreaFrame(ComputedStyle* aStyle) :
|
|
|
|
nsBlockFrame(aStyle, kClassID),
|
2017-07-13 05:37:11 +03:00
|
|
|
// initialize to wacky value so first call of
|
|
|
|
// nsSelectsAreaFrame::Reflow will always invalidate
|
|
|
|
mBSizeOfARow(nscoord_MIN)
|
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 08:38:33 +03:00
|
|
|
{}
|
|
|
|
|
2015-02-08 18:31:14 +03:00
|
|
|
// We cache the block size of a single row so that changes to the
|
|
|
|
// "size" attribute, padding, etc. can all be handled with only one
|
|
|
|
// reflow. We'll have to reflow twice if someone changes our font
|
|
|
|
// size or something like that, so that the block size of our options
|
|
|
|
// will change.
|
|
|
|
nscoord mBSizeOfARow;
|
1999-09-03 18:25:15 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsSelectsAreaFrame_h___ */
|