зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1264837 Part 35 - Remove nsSVGPathGeometryFrameBase. r=dholbert
MozReview-Commit-ID: 65TI0SnEXax --HG-- extra : rebase_source : 94a5f99dc750e344c632f3ceac93e55370bae076
This commit is contained in:
Родитель
1ee3684650
Коммит
40eb55de27
|
@ -50,7 +50,7 @@ NS_IMPL_FRAMEARENA_HELPERS(nsSVGPathGeometryFrame)
|
||||||
NS_QUERYFRAME_HEAD(nsSVGPathGeometryFrame)
|
NS_QUERYFRAME_HEAD(nsSVGPathGeometryFrame)
|
||||||
NS_QUERYFRAME_ENTRY(nsISVGChildFrame)
|
NS_QUERYFRAME_ENTRY(nsISVGChildFrame)
|
||||||
NS_QUERYFRAME_ENTRY(nsSVGPathGeometryFrame)
|
NS_QUERYFRAME_ENTRY(nsSVGPathGeometryFrame)
|
||||||
NS_QUERYFRAME_TAIL_INHERITING(nsSVGPathGeometryFrameBase)
|
NS_QUERYFRAME_TAIL_INHERITING(nsFrame)
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Display list item:
|
// Display list item:
|
||||||
|
@ -123,7 +123,7 @@ nsSVGPathGeometryFrame::Init(nsIContent* aContent,
|
||||||
nsIFrame* aPrevInFlow)
|
nsIFrame* aPrevInFlow)
|
||||||
{
|
{
|
||||||
AddStateBits(aParent->GetStateBits() & NS_STATE_SVG_CLIPPATH_CHILD);
|
AddStateBits(aParent->GetStateBits() & NS_STATE_SVG_CLIPPATH_CHILD);
|
||||||
nsSVGPathGeometryFrameBase::Init(aContent, aParent, aPrevInFlow);
|
nsFrame::Init(aContent, aParent, aPrevInFlow);
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
|
@ -150,7 +150,7 @@ nsSVGPathGeometryFrame::AttributeChanged(int32_t aNameSpaceID,
|
||||||
/* virtual */ void
|
/* virtual */ void
|
||||||
nsSVGPathGeometryFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
|
nsSVGPathGeometryFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
|
||||||
{
|
{
|
||||||
nsSVGPathGeometryFrameBase::DidSetStyleContext(aOldStyleContext);
|
nsFrame::DidSetStyleContext(aOldStyleContext);
|
||||||
|
|
||||||
if (aOldStyleContext) {
|
if (aOldStyleContext) {
|
||||||
auto oldStyleEffects = aOldStyleContext->PeekStyleEffects();
|
auto oldStyleEffects = aOldStyleContext->PeekStyleEffects();
|
||||||
|
|
|
@ -32,10 +32,8 @@ class nsSVGMarkerProperty;
|
||||||
|
|
||||||
struct nsRect;
|
struct nsRect;
|
||||||
|
|
||||||
typedef nsFrame nsSVGPathGeometryFrameBase;
|
class nsSVGPathGeometryFrame : public nsFrame
|
||||||
|
, public nsISVGChildFrame
|
||||||
class nsSVGPathGeometryFrame : public nsSVGPathGeometryFrameBase,
|
|
||||||
public nsISVGChildFrame
|
|
||||||
{
|
{
|
||||||
typedef mozilla::gfx::DrawTarget DrawTarget;
|
typedef mozilla::gfx::DrawTarget DrawTarget;
|
||||||
|
|
||||||
|
@ -46,7 +44,7 @@ class nsSVGPathGeometryFrame : public nsSVGPathGeometryFrameBase,
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit nsSVGPathGeometryFrame(nsStyleContext* aContext)
|
explicit nsSVGPathGeometryFrame(nsStyleContext* aContext)
|
||||||
: nsSVGPathGeometryFrameBase(aContext)
|
: nsFrame(aContext)
|
||||||
{
|
{
|
||||||
AddStateBits(NS_FRAME_SVG_LAYOUT | NS_FRAME_MAY_BE_TRANSFORMED);
|
AddStateBits(NS_FRAME_SVG_LAYOUT | NS_FRAME_MAY_BE_TRANSFORMED);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +61,7 @@ public:
|
||||||
|
|
||||||
virtual bool IsFrameOfType(uint32_t aFlags) const override
|
virtual bool IsFrameOfType(uint32_t aFlags) const override
|
||||||
{
|
{
|
||||||
return nsSVGPathGeometryFrameBase::IsFrameOfType(aFlags & ~(nsIFrame::eSVG | nsIFrame::eSVGGeometry));
|
return nsFrame::IsFrameOfType(aFlags & ~(nsIFrame::eSVG | nsIFrame::eSVGGeometry));
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual nsresult AttributeChanged(int32_t aNameSpaceID,
|
virtual nsresult AttributeChanged(int32_t aNameSpaceID,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче