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