Quellcode-Bibliothek HTMLStyleElement.h
Sprache: C
/* -*- 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/. */
class HTMLStyleElement final : public nsGenericHTMLElement, public LinkStyle, public nsStubMutationObserver { public: explicit HTMLStyleElement(
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
// nsISupports
NS_DECL_ISUPPORTS_INHERITED
// CC
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(HTMLStyleElement,
nsGenericHTMLElement)
void GetInnerHTML(nsAString& aInnerHTML, OOMReporter& aError) override; using nsGenericHTMLElement::SetInnerHTML;
public: virtualvoid SetTextContentInternal(const nsAString& aTextContent,
nsIPrincipal* aSubjectPrincipal,
mozilla::ErrorResult& aError) override; /** * Mark this style element with a devtools-specific principal that * skips Content Security Policy unsafe-inline checks. This triggering * principal will be overwritten by any callers that set textContent * or innerHTML on this element.
*/ void SetDevtoolsAsTriggeringPrincipal();
nsIContent& AsContent() final { return *this; } const LinkStyle* AsLinkStyle() const final { returnthis; }
Maybe<SheetInfo> GetStyleSheetInfo() final;
/** * Common method to call from the various mutation observer methods. * aContent is a content node that's either the one that changed or its * parent; we should only respond to the change if aContent is non-anonymous.
*/ void ContentChanged(nsIContent* aContent);
RefPtr<nsDOMTokenList> mBlocking;
};
} // namespace mozilla::dom
#endif
¤ 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.0.0Bemerkung:
(vorverarbeitet)
¤
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.