/* -*- 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/. */ #ifndef nsHTMLDocument_h___ #define nsHTMLDocument_h___
class nsHTMLDocument : public mozilla::dom::Document { protected: using ReferrerPolicy = mozilla::dom::ReferrerPolicy; using Document = mozilla::dom::Document; using Encoding = mozilla::Encoding; template <typename T> using NotNull = mozilla::NotNull<T>;
// Returns whether an object was found for aName. bool ResolveName(JSContext* aCx, const nsAString& aName,
JS::MutableHandle<JS::Value> aRetval,
mozilla::ErrorResult& aError);
/** * Called when form->BindToTree() is called so that document knows * immediately when a form is added
*/ void AddedForm(); /** * Called when form->SetDocument() is called so that document knows * immediately when a form is removed
*/ void RemovedForm(); /** * Called to get a better count of forms than document.forms can provide * without calling FlushPendingNotifications (bug 138892).
*/ // XXXbz is this still needed now that we can flush just content, // not the rest?
int32_t GetNumFormsSynchronous() const; void SetIsXHTML(bool aXHTML) { mType = (aXHTML ? eXHTML : eHTML); }
// A helper class to keep nsContentList objects alive for a short period of // time. Note, when the final Release is called on an nsContentList object, it // removes itself from MutationObserver list. class ContentListHolder : public mozilla::Runnable { public:
ContentListHolder(nsHTMLDocument* aDocument, nsContentList* aFormList,
nsContentList* aFormControlList)
: mozilla::Runnable("ContentListHolder"),
mDocument(aDocument),
mFormList(aFormList),
mFormControlList(aFormControlList) {}
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.