/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */
nsIFrame* NS_NewSVGFELeafFrame(mozilla::PresShell* aPresShell,
mozilla::ComputedStyle* aStyle); namespace mozilla {
/* * This frame is used by filter primitive elements that don't * have special child elements that provide parameters.
*/ class SVGFELeafFrame final : public nsIFrame { friend nsIFrame* ::NS_NewSVGFELeafFrame(mozilla::PresShell* aPresShell,
ComputedStyle* aStyle);
#ifdef DEBUG void SVGFELeafFrame::Init(nsIContent* aContent, nsContainerFrame* aParent,
nsIFrame* aPrevInFlow) {
NS_ASSERTION(aContent->IsSVGFilterPrimitiveElement(), "Trying to construct an SVGFELeafFrame for a " "content element that doesn't support the right interfaces");
nsresult SVGFELeafFrame::AttributeChanged(int32_t aNameSpaceID,
nsAtom* aAttribute,
int32_t aModType) { auto* element = static_cast<mozilla::dom::SVGFilterPrimitiveElement*>(GetContent()); if (element->AttributeAffectsRendering(aNameSpaceID, aAttribute)) {
MOZ_ASSERT(
GetParent()->IsSVGFilterFrame(), "Observers observe the filter, so that's what we must invalidate");
SVGObserverUtils::InvalidateRenderingObservers(GetParent());
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.