/* -*- 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 HTMLSourceElement final : public nsGenericHTMLElement { public: explicit HTMLSourceElement(
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
// Override BindToTree() so that we can trigger a load when we add a // child source element.
nsresult BindToTree(BindContext&, nsINode& aParent) override;
void UnbindFromTree(UnbindContext&) override;
// If this element's media attr matches for its owner document. Returns true // if no media attr was set. bool MatchesCurrentMedia();
// True if a source tag would match the given media attribute for the // specified document. Used by the preloader to determine valid <source> tags // prior to DOM creation. staticbool WouldMatchMediaForDocument(const nsAString& aMediaStr, const Document* aDocument);
// Return the MediaSource object if any associated with the src attribute // when it was set.
MediaSource* GetSrcMediaSource() { return mSrcMediaSource; };
// The triggering principal for the src attribute.
nsCOMPtr<nsIPrincipal> mSrcTriggeringPrincipal;
// The triggering principal for the srcset attribute.
nsCOMPtr<nsIPrincipal> mSrcsetTriggeringPrincipal;
// The mapped attributes to HTMLImageElement if we are associated with a // <picture> with a valid <img>.
RefPtr<StyleLockedDeclarationBlock> mMappedAttributesForImage;
};
} // namespace mozilla::dom
#endif// mozilla_dom_HTMLSourceElement_h
¤ Dauer der Verarbeitung: 0.0 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.