Quellcode-Bibliothek nsHtml5TreeOpExecutor.h
Sprache: C
/* 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 nsHtml5Parser; class nsHtml5StreamParser; class nsIContent; namespace mozilla { namespace dom { class Document;
}
} // namespace mozilla
class nsHtml5TreeOpExecutor final
: public nsHtml5DocumentBuilder, public nsIContentSink, public nsAHtml5TreeOpSink, public mozilla::LinkedListElement<nsHtml5TreeOpExecutor> { friendclass nsHtml5FlushLoopGuard; typedef mozilla::dom::ReferrerPolicy ReferrerPolicy; using Encoding = mozilla::Encoding; template <typename T> using NotNull = mozilla::NotNull<T>;
/** * Flush the operations from the tree operations from the argument * queue unconditionally. (This is for the main thread case.)
*/
[[nodiscard]] virtualbool MoveOpsFrom(
nsTArray<nsHtml5TreeOperation>& aOpQueue) override;
/** * Get a nsIURI for an nsString if the URL hasn't been preloaded yet.
*/
already_AddRefed<nsIURI> ConvertIfNotPreloadedYet(const nsAString& aURL);
/** * The above, plus also checks that the media attribute applies.
*/
already_AddRefed<nsIURI> ConvertIfNotPreloadedYetAndMediaApplies( const nsAString& aURL, const nsAString& aMedia);
/** Returns whether the given media attribute applies to mDocument */ bool MediaApplies(const nsAString& aMedia);
/** * The base URI we would use for current preload operations
*/
nsIURI* BaseURIForPreload();
/** * Returns true if we haven't preloaded this URI yet, and adds it to the * list of preloaded URIs
*/ bool ShouldPreloadURI(nsIURI* aURI);
¤ 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.14Bemerkung:
(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.