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