/* -*- 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/. */
namespace mozilla { class EventChainPostVisitor; class EventChainPreVisitor; class PreloaderBase;
namespace dom {
class HTMLLinkElement final : public nsGenericHTMLElement, public LinkStyle, public SupportsDNSPrefetch { public: explicit HTMLLinkElement(
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
// nsISupports
NS_DECL_ISUPPORTS_INHERITED
// CC
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(HTMLLinkElement,
nsGenericHTMLElement)
// Returns whether the type attribute specifies the text/css mime type for // link elements. staticbool IsCSSMimeTypeAttributeForLinkElement( const mozilla::dom::Element&);
// LinkStyle
nsIContent& AsContent() final { return *this; } const LinkStyle* AsLinkStyle() const final { returnthis; }
Maybe<SheetInfo> GetStyleSheetInfo() final;
// A weak reference to our preload is held only to cancel the preload when // this node updates or unbounds from the tree. We want to prevent cycles, // the preload is held alive by other means.
WeakPtr<PreloaderBase> mPreload;
// The cached href attribute value.
nsCOMPtr<nsIURI> mCachedURI;
// The "explicitly enabled" flag. This flag is set whenever the `disabled` // attribute is explicitly unset, and makes alternate stylesheets not be // disabled by default anymore. // // See https://github.com/whatwg/html/issues/3840#issuecomment-481034206. bool mExplicitlyEnabled = false;
};
} // namespace dom
} // namespace mozilla
#endif// mozilla_dom_HTMLLinkElement_h
¤ Dauer der Verarbeitung: 0.15 Sekunden
(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.