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
|
|
|
|
2013-03-19 18:47:48 -07:00
|
|
|
void
|
2007-03-22 10:30:00 -07:00
|
|
|
nsSVGGeometryFrame::Init(nsIContent* aContent,
|
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow)
|
|
|
|
{
|
2013-07-12 00:13:07 -07:00
|
|
|
AddStateBits(aParent->GetStateBits() & NS_STATE_SVG_CLIPPATH_CHILD);
|
2013-03-19 18:47:48 -07:00
|
|
|
nsSVGGeometryFrameBase::Init(aContent, aParent, aPrevInFlow);
|
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()
|
|
|
|
{
|
2013-02-16 13:51:02 -08:00
|
|
|
return StyleSVG()->mClipRule;
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|