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