2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-03-26 04:58:59 -07:00
|
|
|
// Main header first:
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "nsSVGGeometryFrame.h"
|
2012-03-26 04:58:59 -07:00
|
|
|
|
|
|
|
// Keep others in (case-insensitive) order:
|
2007-03-22 10:30:00 -07:00
|
|
|
#include "gfxContext.h"
|
2012-09-05 21:58:46 -07:00
|
|
|
#include "gfxSVGGlyphs.h"
|
2012-03-26 04:58:59 -07:00
|
|
|
#include "nsPresContext.h"
|
2008-09-30 17:51:05 -07:00
|
|
|
#include "nsSVGEffects.h"
|
2012-03-26 04:58:59 -07:00
|
|
|
#include "nsSVGPaintServerFrame.h"
|
|
|
|
#include "nsSVGUtils.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-09-12 09:49:24 -07:00
|
|
|
NS_IMPL_FRAMEARENA_HELPERS(nsSVGGeometryFrame)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
//----------------------------------------------------------------------
|
2007-07-17 01:40:28 -07:00
|
|
|
// nsIFrame methods
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
nsSVGGeometryFrame::Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow)
|
|
|
|
{
|
2011-04-20 02:16:01 -07:00
|
|
|
AddStateBits(aParent->GetStateBits() &
|
2012-03-20 05:15:53 -07:00
|
|
|
(NS_STATE_SVG_NONDISPLAY_CHILD | NS_STATE_SVG_CLIPPATH_CHILD));
|
2007-08-30 10:01:37 -07:00
|
|
|
nsresult rv = nsSVGGeometryFrameBase::Init(aContent, aParent, aPrevInFlow);
|
|
|
|
return rv;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2007-07-17 01:40:28 -07:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint16_t
|
2007-03-22 10:30:00 -07:00
|
|
|
nsSVGGeometryFrame::GetClipRule()
|
|
|
|
{
|
|
|
|
return GetStyleSVG()->mClipRule;
|
|
|
|
}
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint16_t
|
2011-07-08 06:20:14 -07:00
|
|
|
nsSVGGeometryFrame::GetHitTestFlags()
|
2011-01-27 22:35:35 -08:00
|
|
|
{
|
2012-08-10 04:13:43 -07:00
|
|
|
return nsSVGUtils::GetGeometryHitTestFlags(this);
|
2011-01-27 22:35:35 -08:00
|
|
|
}
|