2002-01-12 04:18:10 +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/. */
|
2002-01-12 04:18:10 +03:00
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2002-01-12 04:18:10 +03:00
|
|
|
#include "nsGridRowLeafFrame.h"
|
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
nsIFrame* NS_NewListItemFrame(nsIPresShell* aPresShell,
|
2009-01-19 21:31:33 +03:00
|
|
|
nsStyleContext *aContext);
|
2002-03-08 15:37:00 +03:00
|
|
|
|
2002-01-12 04:18:10 +03:00
|
|
|
class nsListItemFrame : public nsGridRowLeafFrame
|
|
|
|
{
|
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
friend nsIFrame* NS_NewListItemFrame(nsIPresShell* aPresShell,
|
2009-01-19 21:31:33 +03:00
|
|
|
nsStyleContext *aContext);
|
2002-01-12 04:18:10 +03:00
|
|
|
|
2002-03-29 05:46:01 +03:00
|
|
|
// overridden so that children of listitems don't handle mouse events,
|
|
|
|
// unless allowevents="true" is specified on the listitem
|
2013-02-14 15:12:27 +04:00
|
|
|
virtual void BuildDisplayListForChildren(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
2015-03-21 19:28:04 +03:00
|
|
|
const nsDisplayListSet& aLists) override;
|
2002-03-29 05:46:01 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual nsSize GetPrefSize(nsBoxLayoutState& aState) override;
|
2012-08-06 07:00:57 +04:00
|
|
|
|
2002-01-12 04:18:10 +03:00
|
|
|
protected:
|
2015-01-06 12:27:56 +03:00
|
|
|
explicit nsListItemFrame(nsStyleContext *aContext,
|
|
|
|
bool aIsRoot = false,
|
|
|
|
nsBoxLayout* aLayoutManager = nullptr);
|
2002-01-12 04:18:10 +03:00
|
|
|
virtual ~nsListItemFrame();
|
|
|
|
|
|
|
|
}; // class nsListItemFrame
|