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/. */
|
2000-02-14 04:42:09 +03:00
|
|
|
|
|
|
|
// YY need to pass isMultiple before create called
|
|
|
|
|
2001-10-24 04:01:09 +04:00
|
|
|
#include "nsBoxFrame.h"
|
2014-10-20 13:55:48 +04:00
|
|
|
|
2017-06-09 22:14:53 +03:00
|
|
|
#include "gfxContext.h"
|
2014-10-20 13:55:48 +04:00
|
|
|
#include "mozilla/gfx/2D.h"
|
2000-02-14 04:42:09 +03:00
|
|
|
#include "nsCSSRendering.h"
|
2014-10-20 13:55:48 +04:00
|
|
|
#include "nsLayoutUtils.h"
|
2003-02-22 03:32:13 +03:00
|
|
|
#include "nsStyleContext.h"
|
2006-01-26 05:29:17 +03:00
|
|
|
#include "nsDisplayList.h"
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2014-10-20 13:55:48 +04:00
|
|
|
using namespace mozilla;
|
|
|
|
using namespace mozilla::gfx;
|
2015-10-23 05:54:49 +03:00
|
|
|
using namespace mozilla::image;
|
2014-10-20 13:55:48 +04:00
|
|
|
|
2017-05-02 04:50:16 +03:00
|
|
|
class nsGroupBoxFrame final : public nsBoxFrame
|
|
|
|
{
|
2000-02-14 04:42:09 +03:00
|
|
|
public:
|
2017-05-26 13:11:11 +03:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS(nsGroupBoxFrame)
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2015-01-06 12:27:56 +03:00
|
|
|
explicit nsGroupBoxFrame(nsStyleContext* aContext):
|
2017-05-26 13:11:11 +03:00
|
|
|
nsBoxFrame(aContext, kClassID) {}
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2016-04-21 07:28:32 +03:00
|
|
|
virtual nsresult GetXULBorderAndPadding(nsMargin& aBorderAndPadding) override;
|
2000-03-31 11:02:06 +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;
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2014-01-06 03:31:14 +04:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual nsresult GetFrameName(nsAString& aResult) const override {
|
2001-11-14 04:33:42 +03:00
|
|
|
return MakeFrameName(NS_LITERAL_STRING("GroupBoxFrame"), aResult);
|
2000-02-14 04:42:09 +03:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual bool HonorPrintBackgroundSettings() override { return false; }
|
2009-05-28 09:01:42 +04:00
|
|
|
|
2017-06-09 22:14:53 +03:00
|
|
|
DrawResult PaintBorder(gfxContext& aRenderingContext,
|
2015-10-23 05:54:49 +03:00
|
|
|
nsPoint aPt,
|
|
|
|
const nsRect& aDirtyRect);
|
2016-04-28 00:45:21 +03:00
|
|
|
nsRect GetBackgroundRectRelativeToSelf(nscoord* aOutYOffset = nullptr, nsRect* aOutGroupRect = nullptr);
|
2006-01-26 05:29:17 +03:00
|
|
|
|
107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
2001-11-03 07:17:02 +03:00
|
|
|
// make sure we our kids get our orient and align instead of us.
|
2000-04-26 08:00:29 +04:00
|
|
|
// our child box has no content node so it will search for a parent with one.
|
|
|
|
// that will be us.
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual void GetInitialOrientation(bool& aHorizontal) override { aHorizontal = false; }
|
2017-07-06 15:00:35 +03:00
|
|
|
virtual bool GetInitialHAlignment(Halignment& aHalign) override { aHalign = hAlign_Left; return true; }
|
|
|
|
virtual bool GetInitialVAlignment(Valignment& aValign) override { aValign = vAlign_Top; return true; }
|
|
|
|
virtual bool GetInitialAutoStretch(bool& aStretch) override { aStretch = true; return true; }
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2015-12-07 04:15:53 +03:00
|
|
|
nsIFrame* GetCaptionBox(nsRect& aCaptionRect);
|
2000-02-14 04:42:09 +03:00
|
|
|
};
|
|
|
|
|
2000-06-13 03:23:00 +04:00
|
|
|
/*
|
2001-10-21 11:03:02 +04:00
|
|
|
class nsGroupBoxInnerFrame : public nsBoxFrame {
|
2000-02-14 04:42:09 +03:00
|
|
|
public:
|
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
nsGroupBoxInnerFrame(nsIPresShell* aShell, nsStyleContext* aContext):
|
|
|
|
nsBoxFrame(aShell, aContext) {}
|
2000-02-14 04:42:09 +03:00
|
|
|
|
|
|
|
|
2014-01-06 03:31:14 +04:00
|
|
|
#ifdef DEBUG_FRAME_DUMP
|
2000-02-14 04:42:09 +03:00
|
|
|
NS_IMETHOD GetFrameName(nsString& aResult) const {
|
2001-10-21 11:03:02 +04:00
|
|
|
return MakeFrameName("GroupBoxFrameInner", aResult);
|
2000-02-14 04:42:09 +03:00
|
|
|
}
|
|
|
|
#endif
|
2017-07-06 15:00:35 +03:00
|
|
|
|
2000-02-14 04:42:09 +03:00
|
|
|
// we are always flexible
|
2012-08-22 19:56:38 +04:00
|
|
|
virtual bool GetDefaultFlex(int32_t& aFlex) { aFlex = 1; return true; }
|
2000-02-14 04:42:09 +03:00
|
|
|
|
|
|
|
};
|
2000-06-13 03:23:00 +04:00
|
|
|
*/
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2005-10-27 01:46:39 +04:00
|
|
|
nsIFrame*
|
2006-03-27 01:30:36 +04:00
|
|
|
NS_NewGroupBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext)
|
2000-02-14 04:42:09 +03:00
|
|
|
{
|
2015-01-06 12:27:56 +03:00
|
|
|
return new (aPresShell) nsGroupBoxFrame(aContext);
|
2000-02-14 04:42:09 +03:00
|
|
|
}
|
|
|
|
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsGroupBoxFrame)
|
|
|
|
|
2017-05-02 04:50:16 +03:00
|
|
|
class nsDisplayXULGroupBorder final : public nsDisplayItem
|
|
|
|
{
|
2006-01-26 05:29:17 +03:00
|
|
|
public:
|
2016-04-28 00:45:21 +03:00
|
|
|
nsDisplayXULGroupBorder(nsDisplayListBuilder* aBuilder,
|
2010-08-13 14:01:13 +04:00
|
|
|
nsGroupBoxFrame* aFrame) :
|
|
|
|
nsDisplayItem(aBuilder, aFrame) {
|
2016-04-28 00:45:21 +03:00
|
|
|
MOZ_COUNT_CTOR(nsDisplayXULGroupBorder);
|
2006-01-29 21:48:58 +03:00
|
|
|
}
|
|
|
|
#ifdef NS_BUILD_REFCNT_LOGGING
|
2016-04-28 00:45:21 +03:00
|
|
|
virtual ~nsDisplayXULGroupBorder() {
|
|
|
|
MOZ_COUNT_DTOR(nsDisplayXULGroupBorder);
|
2006-01-29 21:48:58 +03:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-10-23 05:54:49 +03:00
|
|
|
nsDisplayItemGeometry* AllocateGeometry(nsDisplayListBuilder* aBuilder) override;
|
|
|
|
void ComputeInvalidationRegion(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsDisplayItemGeometry* aGeometry,
|
2017-08-24 18:09:44 +03:00
|
|
|
nsRegion *aInvalidRegion) const override;
|
2010-04-08 04:31:26 +04:00
|
|
|
virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
2015-03-21 19:28:04 +03:00
|
|
|
HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames) override {
|
2010-04-08 04:31:26 +04:00
|
|
|
aOutFrames->AppendElement(mFrame);
|
|
|
|
}
|
2009-09-07 04:35:14 +04:00
|
|
|
virtual void Paint(nsDisplayListBuilder* aBuilder,
|
2017-06-09 22:14:53 +03:00
|
|
|
gfxContext* aCtx) override;
|
2010-07-16 01:07:49 +04:00
|
|
|
NS_DISPLAY_DECL_NAME("XULGroupBackground", TYPE_XUL_GROUP_BACKGROUND)
|
2006-01-26 05:29:17 +03:00
|
|
|
};
|
|
|
|
|
2015-10-23 05:54:49 +03:00
|
|
|
nsDisplayItemGeometry*
|
2016-04-28 00:45:21 +03:00
|
|
|
nsDisplayXULGroupBorder::AllocateGeometry(nsDisplayListBuilder* aBuilder)
|
2015-10-23 05:54:49 +03:00
|
|
|
{
|
|
|
|
return new nsDisplayItemGenericImageGeometry(this, aBuilder);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2017-08-24 18:09:44 +03:00
|
|
|
nsDisplayXULGroupBorder::ComputeInvalidationRegion(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsDisplayItemGeometry* aGeometry,
|
|
|
|
nsRegion* aInvalidRegion) const
|
2015-10-23 05:54:49 +03:00
|
|
|
{
|
|
|
|
auto geometry =
|
|
|
|
static_cast<const nsDisplayItemGenericImageGeometry*>(aGeometry);
|
|
|
|
|
|
|
|
if (aBuilder->ShouldSyncDecodeImages() &&
|
|
|
|
geometry->ShouldInvalidateToSyncDecodeImages()) {
|
|
|
|
bool snap;
|
|
|
|
aInvalidRegion->Or(*aInvalidRegion, GetBounds(aBuilder, &snap));
|
|
|
|
}
|
|
|
|
|
|
|
|
nsDisplayItem::ComputeInvalidationRegion(aBuilder, aGeometry, aInvalidRegion);
|
|
|
|
}
|
|
|
|
|
2006-01-26 05:29:17 +03:00
|
|
|
void
|
2016-04-28 00:45:21 +03:00
|
|
|
nsDisplayXULGroupBorder::Paint(nsDisplayListBuilder* aBuilder,
|
2017-06-09 22:14:53 +03:00
|
|
|
gfxContext* aCtx)
|
2006-01-26 05:29:17 +03:00
|
|
|
{
|
2015-10-23 05:54:49 +03:00
|
|
|
DrawResult result = static_cast<nsGroupBoxFrame*>(mFrame)
|
2016-04-28 00:45:21 +03:00
|
|
|
->PaintBorder(*aCtx, ToReferenceFrame(), mVisibleRect);
|
2015-10-23 05:54:49 +03:00
|
|
|
|
|
|
|
nsDisplayItemGenericImageGeometry::UpdateDrawResult(this, result);
|
2006-01-26 05:29:17 +03:00
|
|
|
}
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2013-02-14 15:12:27 +04:00
|
|
|
void
|
2006-01-26 05:29:17 +03:00
|
|
|
nsGroupBoxFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsDisplayListSet& aLists)
|
2000-02-14 04:42:09 +03:00
|
|
|
{
|
2006-01-26 05:29:17 +03:00
|
|
|
// Paint our background and border
|
|
|
|
if (IsVisibleForPainting(aBuilder)) {
|
2016-04-28 00:45:21 +03:00
|
|
|
nsDisplayBackgroundImage::AppendBackgroundItemsToTop(
|
|
|
|
aBuilder, this, GetBackgroundRectRelativeToSelf(),
|
|
|
|
aLists.BorderBackground());
|
2013-02-14 15:08:08 +04:00
|
|
|
aLists.BorderBackground()->AppendNewToTop(new (aBuilder)
|
2016-04-28 00:45:21 +03:00
|
|
|
nsDisplayXULGroupBorder(aBuilder, this));
|
2017-07-06 15:00:35 +03:00
|
|
|
|
2013-02-14 15:08:08 +04:00
|
|
|
DisplayOutline(aBuilder, aLists);
|
2006-01-26 05:29:17 +03:00
|
|
|
}
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2017-08-07 05:23:35 +03:00
|
|
|
BuildDisplayListForChildren(aBuilder, aLists);
|
2006-01-26 05:29:17 +03:00
|
|
|
}
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2016-04-28 00:45:21 +03:00
|
|
|
nsRect
|
|
|
|
nsGroupBoxFrame::GetBackgroundRectRelativeToSelf(nscoord* aOutYOffset, nsRect* aOutGroupRect)
|
|
|
|
{
|
|
|
|
const nsMargin& border = StyleBorder()->GetComputedBorder();
|
|
|
|
|
|
|
|
nsRect groupRect;
|
|
|
|
nsIFrame* groupBox = GetCaptionBox(groupRect);
|
|
|
|
|
|
|
|
nscoord yoff = 0;
|
|
|
|
if (groupBox) {
|
|
|
|
// If the border is smaller than the legend, move the border down
|
|
|
|
// to be centered on the legend.
|
|
|
|
nsMargin groupMargin;
|
|
|
|
groupBox->StyleMargin()->GetMargin(groupMargin);
|
|
|
|
groupRect.Inflate(groupMargin);
|
|
|
|
|
|
|
|
if (border.top < groupRect.height) {
|
|
|
|
yoff = (groupRect.height - border.top) / 2 + groupRect.y;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (aOutYOffset) {
|
|
|
|
*aOutYOffset = yoff;
|
|
|
|
}
|
|
|
|
if (aOutGroupRect) {
|
|
|
|
*aOutGroupRect = groupRect;
|
|
|
|
}
|
|
|
|
|
|
|
|
return nsRect(0, yoff, mRect.width, mRect.height - yoff);
|
|
|
|
}
|
|
|
|
|
2015-10-23 05:54:49 +03:00
|
|
|
DrawResult
|
2017-06-09 22:14:53 +03:00
|
|
|
nsGroupBoxFrame::PaintBorder(gfxContext& aRenderingContext,
|
2006-01-26 05:29:17 +03:00
|
|
|
nsPoint aPt, const nsRect& aDirtyRect) {
|
2014-10-20 13:55:48 +04:00
|
|
|
|
|
|
|
DrawTarget* drawTarget = aRenderingContext.GetDrawTarget();
|
|
|
|
|
2014-06-28 14:13:13 +04:00
|
|
|
Sides skipSides;
|
2013-02-17 01:51:02 +04:00
|
|
|
const nsStyleBorder* borderStyleData = StyleBorder();
|
2012-05-31 09:19:49 +04:00
|
|
|
const nsMargin& border = borderStyleData->GetComputedBorder();
|
2007-03-31 01:11:41 +04:00
|
|
|
nsPresContext* presContext = PresContext();
|
2006-01-26 05:29:17 +03:00
|
|
|
|
|
|
|
nsRect groupRect;
|
2015-12-07 04:15:53 +03:00
|
|
|
nsIFrame* groupBox = GetCaptionBox(groupRect);
|
2006-01-26 05:29:17 +03:00
|
|
|
|
2016-04-28 00:45:21 +03:00
|
|
|
nscoord yoff = 0;
|
|
|
|
nsRect rect = GetBackgroundRectRelativeToSelf(&yoff, &groupRect) + aPt;
|
2006-01-26 05:29:17 +03:00
|
|
|
groupRect += aPt;
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2016-04-28 00:45:21 +03:00
|
|
|
DrawResult result = DrawResult::SUCCESS;
|
2006-01-26 05:29:17 +03:00
|
|
|
if (groupBox) {
|
2014-10-20 13:55:48 +04:00
|
|
|
int32_t appUnitsPerDevPixel = PresContext()->AppUnitsPerDevPixel();
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2006-01-26 05:29:17 +03:00
|
|
|
// we should probably use PaintBorderEdges to do this but for now just use clipping
|
|
|
|
// to achieve the same effect.
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2006-01-26 05:29:17 +03:00
|
|
|
// draw left side
|
|
|
|
nsRect clipRect(rect);
|
|
|
|
clipRect.width = groupRect.x - rect.x;
|
|
|
|
clipRect.height = border.top;
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2017-06-09 22:14:53 +03:00
|
|
|
aRenderingContext.Save();
|
|
|
|
aRenderingContext.Clip(
|
|
|
|
NSRectToSnappedRect(clipRect, appUnitsPerDevPixel, *drawTarget));
|
2015-10-23 05:54:49 +03:00
|
|
|
result &=
|
|
|
|
nsCSSRendering::PaintBorder(presContext, aRenderingContext, this,
|
|
|
|
aDirtyRect, rect, mStyleContext,
|
|
|
|
PaintBorderFlags::SYNC_DECODE_IMAGES, skipSides);
|
2017-06-09 22:14:53 +03:00
|
|
|
aRenderingContext.Restore();
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2006-01-26 05:29:17 +03:00
|
|
|
// draw right side
|
|
|
|
clipRect = rect;
|
|
|
|
clipRect.x = groupRect.XMost();
|
|
|
|
clipRect.width = rect.XMost() - groupRect.XMost();
|
|
|
|
clipRect.height = border.top;
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2017-06-09 22:14:53 +03:00
|
|
|
aRenderingContext.Save();
|
|
|
|
aRenderingContext.Clip(
|
|
|
|
NSRectToSnappedRect(clipRect, appUnitsPerDevPixel, *drawTarget));
|
2015-10-23 05:54:49 +03:00
|
|
|
result &=
|
|
|
|
nsCSSRendering::PaintBorder(presContext, aRenderingContext, this,
|
|
|
|
aDirtyRect, rect, mStyleContext,
|
|
|
|
PaintBorderFlags::SYNC_DECODE_IMAGES, skipSides);
|
2017-07-06 15:00:35 +03:00
|
|
|
|
2017-06-09 22:14:53 +03:00
|
|
|
aRenderingContext.Restore();
|
2006-01-26 05:29:17 +03:00
|
|
|
// draw bottom
|
2000-02-14 04:42:09 +03:00
|
|
|
|
2006-01-26 05:29:17 +03:00
|
|
|
clipRect = rect;
|
|
|
|
clipRect.y += border.top;
|
|
|
|
clipRect.height = mRect.height - (yoff + border.top);
|
2017-06-09 22:14:53 +03:00
|
|
|
|
|
|
|
aRenderingContext.Save();
|
|
|
|
aRenderingContext.Clip(
|
|
|
|
NSRectToSnappedRect(clipRect, appUnitsPerDevPixel, *drawTarget));
|
2015-10-23 05:54:49 +03:00
|
|
|
result &=
|
|
|
|
nsCSSRendering::PaintBorder(presContext, aRenderingContext, this,
|
|
|
|
aDirtyRect, rect, mStyleContext,
|
|
|
|
PaintBorderFlags::SYNC_DECODE_IMAGES, skipSides);
|
2017-07-06 15:00:35 +03:00
|
|
|
|
2017-06-09 22:14:53 +03:00
|
|
|
aRenderingContext.Restore();
|
2006-01-26 05:29:17 +03:00
|
|
|
} else {
|
2015-10-23 05:54:49 +03:00
|
|
|
result &=
|
|
|
|
nsCSSRendering::PaintBorder(presContext, aRenderingContext, this,
|
|
|
|
aDirtyRect, nsRect(aPt, GetSize()),
|
|
|
|
mStyleContext,
|
|
|
|
PaintBorderFlags::SYNC_DECODE_IMAGES, skipSides);
|
2000-02-14 04:42:09 +03:00
|
|
|
}
|
2015-10-23 05:54:49 +03:00
|
|
|
|
|
|
|
return result;
|
2000-02-14 04:42:09 +03:00
|
|
|
}
|
|
|
|
|
2012-08-06 07:00:57 +04:00
|
|
|
nsIFrame*
|
2015-12-07 04:15:53 +03:00
|
|
|
nsGroupBoxFrame::GetCaptionBox(nsRect& aCaptionRect)
|
2000-02-14 04:42:09 +03:00
|
|
|
{
|
2001-10-21 13:30:22 +04:00
|
|
|
// first child is our grouped area
|
2016-04-21 07:28:32 +03:00
|
|
|
nsIFrame* box = nsBox::GetChildXULBox(this);
|
2000-06-13 03:23:00 +04:00
|
|
|
|
|
|
|
// no area fail.
|
|
|
|
if (!box)
|
2012-07-30 18:20:58 +04:00
|
|
|
return nullptr;
|
2000-06-13 03:23:00 +04:00
|
|
|
|
2001-10-21 13:30:22 +04:00
|
|
|
// get the first child in the grouped area, that is the caption
|
2016-04-21 07:28:32 +03:00
|
|
|
box = nsBox::GetChildXULBox(box);
|
2000-06-13 03:23:00 +04:00
|
|
|
|
|
|
|
// nothing in the area? fail
|
2001-10-21 11:03:02 +04:00
|
|
|
if (!box)
|
2012-07-30 18:20:58 +04:00
|
|
|
return nullptr;
|
2000-06-13 03:23:00 +04:00
|
|
|
|
2001-10-21 13:30:22 +04:00
|
|
|
// now get the caption itself. It is in the caption frame.
|
2016-04-21 07:28:32 +03:00
|
|
|
nsIFrame* child = nsBox::GetChildXULBox(box);
|
2001-10-21 11:03:02 +04:00
|
|
|
|
|
|
|
if (child) {
|
|
|
|
// convert to our coordinates.
|
2004-09-28 22:37:50 +04:00
|
|
|
nsRect parentRect(box->GetRect());
|
|
|
|
aCaptionRect = child->GetRect();
|
2001-10-21 13:30:22 +04:00
|
|
|
aCaptionRect.x += parentRect.x;
|
|
|
|
aCaptionRect.y += parentRect.y;
|
2001-10-21 11:03:02 +04:00
|
|
|
}
|
|
|
|
|
2000-02-14 04:42:09 +03:00
|
|
|
return child;
|
|
|
|
}
|
|
|
|
|
2014-02-18 11:47:48 +04:00
|
|
|
nsresult
|
2016-04-21 07:28:32 +03:00
|
|
|
nsGroupBoxFrame::GetXULBorderAndPadding(nsMargin& aBorderAndPadding)
|
2000-02-14 04:42:09 +03:00
|
|
|
{
|
2000-03-31 11:02:06 +04:00
|
|
|
aBorderAndPadding.SizeTo(0,0,0,0);
|
|
|
|
return NS_OK;
|
2000-02-15 03:56:15 +03:00
|
|
|
}
|
|
|
|
|