зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
This commit is contained in:
Родитель
15f1932c0f
Коммит
5b753da289
|
@ -62,7 +62,7 @@ AccessibleNode::~AccessibleNode()
|
|||
/* virtual */ JSObject*
|
||||
AccessibleNode::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return AccessibleNodeBinding::Wrap(aCx, this, aGivenProto);
|
||||
return AccessibleNode_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/* virtual */ ParentObject
|
||||
|
|
|
@ -143,7 +143,7 @@ nsCoreUtils::DispatchMouseEvent(EventMessage aMessage, int32_t aX, int32_t aY,
|
|||
event.mClickCount = 1;
|
||||
event.button = WidgetMouseEvent::eLeftButton;
|
||||
event.mTime = PR_IntervalNow();
|
||||
event.inputSource = dom::MouseEventBinding::MOZ_SOURCE_UNKNOWN;
|
||||
event.inputSource = dom::MouseEvent_Binding::MOZ_SOURCE_UNKNOWN;
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
aPresShell->HandleEventWithTarget(&event, aFrame, aContent, &status);
|
||||
|
|
|
@ -256,13 +256,13 @@ Accessible::AccessKey() const
|
|||
switch (Preferences::GetInt("ui.key.generalAccessKey", -1)) {
|
||||
case -1:
|
||||
break;
|
||||
case dom::KeyboardEventBinding::DOM_VK_SHIFT:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_SHIFT:
|
||||
return KeyBinding(key, KeyBinding::kShift);
|
||||
case dom::KeyboardEventBinding::DOM_VK_CONTROL:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_CONTROL:
|
||||
return KeyBinding(key, KeyBinding::kControl);
|
||||
case dom::KeyboardEventBinding::DOM_VK_ALT:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_ALT:
|
||||
return KeyBinding(key, KeyBinding::kAlt);
|
||||
case dom::KeyboardEventBinding::DOM_VK_META:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_META:
|
||||
return KeyBinding(key, KeyBinding::kMeta);
|
||||
default:
|
||||
return KeyBinding();
|
||||
|
|
|
@ -721,7 +721,7 @@ DocAccessible::AttributeWillChange(dom::Element* aElement,
|
|||
// Update dependent IDs cache. Take care of elements that are accessible
|
||||
// because dependent IDs cache doesn't contain IDs from non accessible
|
||||
// elements.
|
||||
if (aModType != dom::MutationEventBinding::ADDITION)
|
||||
if (aModType != dom::MutationEvent_Binding::ADDITION)
|
||||
RemoveDependentIDsFor(accessible, aAttribute);
|
||||
|
||||
if (aAttribute == nsGkAtoms::id) {
|
||||
|
@ -739,7 +739,7 @@ DocAccessible::AttributeWillChange(dom::Element* aElement,
|
|||
// need to newly expose it as a toggle button) etc.
|
||||
if (aAttribute == nsGkAtoms::aria_checked ||
|
||||
aAttribute == nsGkAtoms::aria_pressed) {
|
||||
mARIAAttrOldValue = (aModType != dom::MutationEventBinding::ADDITION) ?
|
||||
mARIAAttrOldValue = (aModType != dom::MutationEvent_Binding::ADDITION) ?
|
||||
nsAccUtils::GetARIAToken(aElement, aAttribute) : nullptr;
|
||||
return;
|
||||
}
|
||||
|
@ -794,8 +794,8 @@ DocAccessible::AttributeChanged(dom::Element* aElement,
|
|||
// its accessible will be created later. It doesn't make sense to keep
|
||||
// dependent IDs for non accessible elements. For the second case we'll update
|
||||
// dependent IDs cache when its accessible is created.
|
||||
if (aModType == dom::MutationEventBinding::MODIFICATION ||
|
||||
aModType == dom::MutationEventBinding::ADDITION) {
|
||||
if (aModType == dom::MutationEvent_Binding::MODIFICATION ||
|
||||
aModType == dom::MutationEvent_Binding::ADDITION) {
|
||||
AddDependentIDsFor(accessible, aAttribute);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -173,16 +173,16 @@ XULMenuitemAccessible::AccessKey() const
|
|||
}
|
||||
|
||||
switch (gMenuAccesskeyModifier) {
|
||||
case dom::KeyboardEventBinding::DOM_VK_CONTROL:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_CONTROL:
|
||||
modifierKey = KeyBinding::kControl;
|
||||
break;
|
||||
case dom::KeyboardEventBinding::DOM_VK_ALT:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_ALT:
|
||||
modifierKey = KeyBinding::kAlt;
|
||||
break;
|
||||
case dom::KeyboardEventBinding::DOM_VK_META:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_META:
|
||||
modifierKey = KeyBinding::kMeta;
|
||||
break;
|
||||
case dom::KeyboardEventBinding::DOM_VK_WIN:
|
||||
case dom::KeyboardEvent_Binding::DOM_VK_WIN:
|
||||
modifierKey = KeyBinding::kOS;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -431,7 +431,7 @@ XULTreeGridCellAccessible::
|
|||
|
||||
NS_ASSERTION(mTreeView, "mTreeView is null");
|
||||
|
||||
if (mColumn->Type() == dom::TreeColumnBinding::TYPE_CHECKBOX)
|
||||
if (mColumn->Type() == dom::TreeColumn_Binding::TYPE_CHECKBOX)
|
||||
mTreeView->GetCellValue(mRow, mColumn, mCachedTextEquiv);
|
||||
else
|
||||
mTreeView->GetCellText(mRow, mColumn, mCachedTextEquiv);
|
||||
|
@ -538,7 +538,7 @@ XULTreeGridCellAccessible::ActionCount() const
|
|||
if (mColumn->Cycler())
|
||||
return 1;
|
||||
|
||||
if (mColumn->Type() == dom::TreeColumnBinding::TYPE_CHECKBOX && IsEditable())
|
||||
if (mColumn->Type() == dom::TreeColumn_Binding::TYPE_CHECKBOX && IsEditable())
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
@ -557,7 +557,7 @@ XULTreeGridCellAccessible::ActionNameAt(uint8_t aIndex, nsAString& aName)
|
|||
return;
|
||||
}
|
||||
|
||||
if (mColumn->Type() == dom::TreeColumnBinding::TYPE_CHECKBOX &&
|
||||
if (mColumn->Type() == dom::TreeColumn_Binding::TYPE_CHECKBOX &&
|
||||
IsEditable()) {
|
||||
nsAutoString value;
|
||||
mTreeView->GetCellValue(mRow, mColumn, value);
|
||||
|
@ -579,7 +579,7 @@ XULTreeGridCellAccessible::DoAction(uint8_t aIndex) const
|
|||
return true;
|
||||
}
|
||||
|
||||
if (mColumn->Type() == dom::TreeColumnBinding::TYPE_CHECKBOX &&
|
||||
if (mColumn->Type() == dom::TreeColumn_Binding::TYPE_CHECKBOX &&
|
||||
IsEditable()) {
|
||||
DoCommand();
|
||||
return true;
|
||||
|
@ -691,7 +691,7 @@ XULTreeGridCellAccessible::NativeState() const
|
|||
}
|
||||
|
||||
// checked state
|
||||
if (mColumn->Type() == dom::TreeColumnBinding::TYPE_CHECKBOX) {
|
||||
if (mColumn->Type() == dom::TreeColumn_Binding::TYPE_CHECKBOX) {
|
||||
states |= states::CHECKABLE;
|
||||
nsAutoString checked;
|
||||
mTreeView->GetCellValue(mRow, mColumn, checked);
|
||||
|
@ -729,7 +729,7 @@ XULTreeGridCellAccessible::CellInvalidated()
|
|||
|
||||
nsAutoString textEquiv;
|
||||
|
||||
if (mColumn->Type() == dom::TreeColumnBinding::TYPE_CHECKBOX) {
|
||||
if (mColumn->Type() == dom::TreeColumn_Binding::TYPE_CHECKBOX) {
|
||||
mTreeView->GetCellValue(mRow, mColumn, textEquiv);
|
||||
if (mCachedTextEquiv != textEquiv) {
|
||||
bool isEnabled = textEquiv.EqualsLiteral("true");
|
||||
|
|
|
@ -133,7 +133,7 @@ NS_INTERFACE_MAP_END
|
|||
/* virtual */ JSObject*
|
||||
DominatorTree::WrapObject(JSContext* aCx, JS::HandleObject aGivenProto)
|
||||
{
|
||||
return dom::DominatorTreeBinding::Wrap(aCx, this, aGivenProto);
|
||||
return dom::DominatorTree_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace devtools
|
||||
|
|
|
@ -86,7 +86,7 @@ NS_INTERFACE_MAP_END
|
|||
/* virtual */ JSObject*
|
||||
HeapSnapshot::WrapObject(JSContext* aCx, HandleObject aGivenProto)
|
||||
{
|
||||
return HeapSnapshotBinding::Wrap(aCx, this, aGivenProto);
|
||||
return HeapSnapshot_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/*** Reading Heap Snapshots ***********************************************************************/
|
||||
|
|
|
@ -124,7 +124,7 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(ChildSHistory,
|
|||
JSObject*
|
||||
ChildSHistory::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return ChildSHistoryBinding::Wrap(cx, this, aGivenProto);
|
||||
return ChildSHistory_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsISupports*
|
||||
|
|
|
@ -60,7 +60,7 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(ParentSHistory,
|
|||
JSObject*
|
||||
ParentSHistory::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return ParentSHistoryBinding::Wrap(cx, this, aGivenProto);
|
||||
return ParentSHistory_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsISupports*
|
||||
|
|
|
@ -43,7 +43,7 @@ AbortController::AbortController(nsIGlobalObject* aGlobal)
|
|||
JSObject*
|
||||
AbortController::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return AbortControllerBinding::Wrap(aCx, this, aGivenProto);
|
||||
return AbortController_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsIGlobalObject*
|
||||
|
|
|
@ -45,7 +45,7 @@ AbortSignal::AbortSignal(bool aAborted)
|
|||
JSObject*
|
||||
AbortSignal::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return AbortSignalBinding::Wrap(aCx, this, aGivenProto);
|
||||
return AbortSignal_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -43,7 +43,7 @@ NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)
|
|||
JSObject*
|
||||
Animation::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return dom::AnimationBinding::Wrap(aCx, this, aGivenProto);
|
||||
return dom::Animation_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
|
@ -47,7 +47,7 @@ CSSPseudoElement::GetParentObject() const
|
|||
JSObject*
|
||||
CSSPseudoElement::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return CSSPseudoElementBinding::Wrap(aCx, this, aGivenProto);
|
||||
return CSSPseudoElement_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -45,7 +45,7 @@ NS_IMPL_RELEASE_INHERITED(DocumentTimeline, AnimationTimeline)
|
|||
JSObject*
|
||||
DocumentTimeline::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DocumentTimelineBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DocumentTimeline_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<DocumentTimeline>
|
||||
|
|
|
@ -85,7 +85,7 @@ JSObject*
|
|||
KeyframeEffect::WrapObject(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return KeyframeEffectBinding::Wrap(aCx, this, aGivenProto);
|
||||
return KeyframeEffect_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
IterationCompositeOperation KeyframeEffect::IterationComposite(
|
||||
|
|
|
@ -206,7 +206,7 @@ AnonymousContent::WrapObject(JSContext* aCx,
|
|||
JS::Handle<JSObject*> aGivenProto,
|
||||
JS::MutableHandle<JSObject*> aReflector)
|
||||
{
|
||||
return AnonymousContentBinding::Wrap(aCx, this, aGivenProto, aReflector);
|
||||
return AnonymousContent_Binding::Wrap(aCx, this, aGivenProto, aReflector);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -315,7 +315,7 @@ Attr::Shutdown()
|
|||
JSObject*
|
||||
Attr::WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return AttrBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Attr_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -36,7 +36,7 @@ BarProp::GetParentObject() const
|
|||
JSObject*
|
||||
BarProp::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return BarPropBinding::Wrap(aCx, this, aGivenProto);
|
||||
return BarProp_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(BarProp, mDOMWindow)
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
|
||||
{
|
||||
return ChildProcessMessageManagerBinding::Wrap(aCx, this, aGivenProto);
|
||||
return ChildProcessMessageManager_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
@ -18,7 +18,7 @@ ChromeMessageBroadcaster::WrapObject(JSContext* aCx,
|
|||
{
|
||||
MOZ_ASSERT(nsContentUtils::IsSystemCaller(aCx));
|
||||
|
||||
return ChromeMessageBroadcasterBinding::Wrap(aCx, this, aGivenProto);
|
||||
return ChromeMessageBroadcaster_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -16,7 +16,7 @@ ChromeMessageSender::WrapObject(JSContext* aCx,
|
|||
{
|
||||
MOZ_ASSERT(nsContentUtils::IsSystemCaller(aCx));
|
||||
|
||||
return ChromeMessageSenderBinding::Wrap(aCx, this, aGivenProto);
|
||||
return ChromeMessageSender_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -22,7 +22,7 @@ ChromeNodeList::Constructor(const GlobalObject& aGlobal, ErrorResult& aRv)
|
|||
JSObject*
|
||||
ChromeNodeList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return ChromeNodeListBinding::Wrap(aCx, this, aGivenProto);
|
||||
return ChromeNodeList_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -68,7 +68,7 @@ Comment::Constructor(const GlobalObject& aGlobal,
|
|||
JSObject*
|
||||
Comment::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return CommentBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Comment_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -41,7 +41,7 @@ Crypto::~Crypto()
|
|||
/* virtual */ JSObject*
|
||||
Crypto::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return CryptoBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Crypto_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -658,7 +658,7 @@ CustomElementRegistry::UpgradeCandidates(nsAtom* aKey,
|
|||
JSObject*
|
||||
CustomElementRegistry::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return CustomElementRegistryBinding::Wrap(aCx, this, aGivenProto);
|
||||
return CustomElementRegistry_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsISupports* CustomElementRegistry::GetParentObject() const
|
||||
|
|
|
@ -59,7 +59,7 @@ DOMError::~DOMError()
|
|||
JSObject*
|
||||
DOMError::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMErrorBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMError_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<DOMError>
|
||||
|
|
|
@ -24,29 +24,29 @@ using namespace mozilla::dom;
|
|||
|
||||
enum DOM4ErrorTypeCodeMap {
|
||||
/* DOM4 errors from http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#domexception */
|
||||
IndexSizeError = DOMExceptionBinding::INDEX_SIZE_ERR,
|
||||
HierarchyRequestError = DOMExceptionBinding::HIERARCHY_REQUEST_ERR,
|
||||
WrongDocumentError = DOMExceptionBinding::WRONG_DOCUMENT_ERR,
|
||||
InvalidCharacterError = DOMExceptionBinding::INVALID_CHARACTER_ERR,
|
||||
NoModificationAllowedError = DOMExceptionBinding::NO_MODIFICATION_ALLOWED_ERR,
|
||||
NotFoundError = DOMExceptionBinding::NOT_FOUND_ERR,
|
||||
NotSupportedError = DOMExceptionBinding::NOT_SUPPORTED_ERR,
|
||||
IndexSizeError = DOMException_Binding::INDEX_SIZE_ERR,
|
||||
HierarchyRequestError = DOMException_Binding::HIERARCHY_REQUEST_ERR,
|
||||
WrongDocumentError = DOMException_Binding::WRONG_DOCUMENT_ERR,
|
||||
InvalidCharacterError = DOMException_Binding::INVALID_CHARACTER_ERR,
|
||||
NoModificationAllowedError = DOMException_Binding::NO_MODIFICATION_ALLOWED_ERR,
|
||||
NotFoundError = DOMException_Binding::NOT_FOUND_ERR,
|
||||
NotSupportedError = DOMException_Binding::NOT_SUPPORTED_ERR,
|
||||
// Can't remove until setNamedItem is removed
|
||||
InUseAttributeError = DOMExceptionBinding::INUSE_ATTRIBUTE_ERR,
|
||||
InvalidStateError = DOMExceptionBinding::INVALID_STATE_ERR,
|
||||
SyntaxError = DOMExceptionBinding::SYNTAX_ERR,
|
||||
InvalidModificationError = DOMExceptionBinding::INVALID_MODIFICATION_ERR,
|
||||
NamespaceError = DOMExceptionBinding::NAMESPACE_ERR,
|
||||
InvalidAccessError = DOMExceptionBinding::INVALID_ACCESS_ERR,
|
||||
TypeMismatchError = DOMExceptionBinding::TYPE_MISMATCH_ERR,
|
||||
SecurityError = DOMExceptionBinding::SECURITY_ERR,
|
||||
NetworkError = DOMExceptionBinding::NETWORK_ERR,
|
||||
AbortError = DOMExceptionBinding::ABORT_ERR,
|
||||
URLMismatchError = DOMExceptionBinding::URL_MISMATCH_ERR,
|
||||
QuotaExceededError = DOMExceptionBinding::QUOTA_EXCEEDED_ERR,
|
||||
TimeoutError = DOMExceptionBinding::TIMEOUT_ERR,
|
||||
InvalidNodeTypeError = DOMExceptionBinding::INVALID_NODE_TYPE_ERR,
|
||||
DataCloneError = DOMExceptionBinding::DATA_CLONE_ERR,
|
||||
InUseAttributeError = DOMException_Binding::INUSE_ATTRIBUTE_ERR,
|
||||
InvalidStateError = DOMException_Binding::INVALID_STATE_ERR,
|
||||
SyntaxError = DOMException_Binding::SYNTAX_ERR,
|
||||
InvalidModificationError = DOMException_Binding::INVALID_MODIFICATION_ERR,
|
||||
NamespaceError = DOMException_Binding::NAMESPACE_ERR,
|
||||
InvalidAccessError = DOMException_Binding::INVALID_ACCESS_ERR,
|
||||
TypeMismatchError = DOMException_Binding::TYPE_MISMATCH_ERR,
|
||||
SecurityError = DOMException_Binding::SECURITY_ERR,
|
||||
NetworkError = DOMException_Binding::NETWORK_ERR,
|
||||
AbortError = DOMException_Binding::ABORT_ERR,
|
||||
URLMismatchError = DOMException_Binding::URL_MISMATCH_ERR,
|
||||
QuotaExceededError = DOMException_Binding::QUOTA_EXCEEDED_ERR,
|
||||
TimeoutError = DOMException_Binding::TIMEOUT_ERR,
|
||||
InvalidNodeTypeError = DOMException_Binding::INVALID_NODE_TYPE_ERR,
|
||||
DataCloneError = DOMException_Binding::DATA_CLONE_ERR,
|
||||
InvalidPointerId = 0,
|
||||
EncodingError = 0,
|
||||
|
||||
|
@ -295,7 +295,7 @@ Exception::ToString(JSContext* aCx, nsACString& _retval)
|
|||
JSObject*
|
||||
Exception::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return ExceptionBinding::Wrap(cx, this, aGivenProto);
|
||||
return Exception_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -424,7 +424,7 @@ DOMException::Constructor(GlobalObject& /* unused */,
|
|||
JSObject*
|
||||
DOMException::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMExceptionBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMException_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/* static */already_AddRefed<DOMException>
|
||||
|
|
|
@ -30,7 +30,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(DOMImplementation)
|
|||
JSObject*
|
||||
DOMImplementation::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMImplementationBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMImplementation_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
already_AddRefed<DocumentType>
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
|
||||
{
|
||||
return mozilla::dom::IntersectionObserverEntryBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::IntersectionObserverEntry_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp Time()
|
||||
|
@ -135,7 +135,7 @@ public:
|
|||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
|
||||
{
|
||||
return mozilla::dom::IntersectionObserverBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::IntersectionObserver_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsISupports* GetParentObject() const
|
||||
|
|
|
@ -36,7 +36,7 @@ NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMMatrixReadOnly, Release)
|
|||
JSObject*
|
||||
DOMMatrixReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMMatrixReadOnlyBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMMatrixReadOnly_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
already_AddRefed<DOMMatrixReadOnly>
|
||||
|
@ -739,7 +739,7 @@ DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
|
|||
JSObject*
|
||||
DOMMatrix::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMMatrixBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMMatrix_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
|
||||
{
|
||||
return mozilla::dom::DOMParserBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::DOMParser_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
// A way to create a non-global-associated DOMParser from C++.
|
||||
|
|
|
@ -38,7 +38,7 @@ DOMPointReadOnly::Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
|||
JSObject*
|
||||
DOMPointReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMPointReadOnlyBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMPointReadOnly_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
already_AddRefed<DOMPoint>
|
||||
|
@ -62,5 +62,5 @@ DOMPoint::Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
|||
JSObject*
|
||||
DOMPoint::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMPointBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMPoint_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ DOMQuad::~DOMQuad()
|
|||
JSObject*
|
||||
DOMQuad::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMQuadBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMQuad_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
already_AddRefed<DOMQuad>
|
||||
|
|
|
@ -25,7 +25,7 @@ JSObject*
|
|||
DOMRectReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
MOZ_ASSERT(mParent);
|
||||
return DOMRectReadOnlyBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMRectReadOnly_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
already_AddRefed<DOMRectReadOnly>
|
||||
|
@ -43,7 +43,7 @@ JSObject*
|
|||
DOMRect::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
MOZ_ASSERT(mParent);
|
||||
return DOMRectBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMRect_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
already_AddRefed<DOMRect>
|
||||
|
@ -71,7 +71,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(DOMRectList)
|
|||
JSObject*
|
||||
DOMRectList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return mozilla::dom::DOMRectListBinding::Wrap(cx, this, aGivenProto);
|
||||
return mozilla::dom::DOMRectList_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
static double
|
||||
|
|
|
@ -74,7 +74,7 @@ NS_IMPL_RELEASE_INHERITED(DOMRequest, DOMEventTargetHelper)
|
|||
/* virtual */ JSObject*
|
||||
DOMRequest::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMRequestBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMRequest_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -27,7 +27,7 @@ DOMStringList::~DOMStringList()
|
|||
JSObject*
|
||||
DOMStringList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMStringListBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DOMStringList_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace dom {
|
|||
JSObject*
|
||||
DocumentFragment::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DocumentFragmentBinding::Wrap(aCx, this, aGivenProto);
|
||||
return DocumentFragment_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace dom {
|
|||
JSObject*
|
||||
DocumentType::WrapNode(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DocumentTypeBinding::Wrap(cx, this, aGivenProto);
|
||||
return DocumentType_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
DocumentType::DocumentType(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo,
|
||||
|
|
|
@ -2275,7 +2275,7 @@ Element::DispatchClickEvent(nsPresContext* aPresContext,
|
|||
inputSource = sourceMouseEvent->inputSource;
|
||||
} else if (aSourceEvent->mClass == eKeyboardEventClass) {
|
||||
event.mFlags.mIsPositionless = true;
|
||||
inputSource = MouseEventBinding::MOZ_SOURCE_KEYBOARD;
|
||||
inputSource = MouseEvent_Binding::MOZ_SOURCE_KEYBOARD;
|
||||
}
|
||||
event.pressure = pressure;
|
||||
event.mClickCount = clickCount;
|
||||
|
@ -2424,8 +2424,8 @@ Element::MaybeCheckSameAttrVal(int32_t aNamespaceID,
|
|||
}
|
||||
}
|
||||
*aModType = modification ?
|
||||
static_cast<uint8_t>(MutationEventBinding::MODIFICATION) :
|
||||
static_cast<uint8_t>(MutationEventBinding::ADDITION);
|
||||
static_cast<uint8_t>(MutationEvent_Binding::MODIFICATION) :
|
||||
static_cast<uint8_t>(MutationEvent_Binding::ADDITION);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2473,7 +2473,7 @@ Element::SetSingleClassFromParser(nsAtom* aSingleClassName)
|
|||
nullptr, // old value
|
||||
value,
|
||||
nullptr,
|
||||
static_cast<uint8_t>(MutationEventBinding::ADDITION),
|
||||
static_cast<uint8_t>(MutationEvent_Binding::ADDITION),
|
||||
false, // hasListeners
|
||||
false, // notify
|
||||
kCallAfterSetAttr,
|
||||
|
@ -2689,7 +2689,7 @@ Element::SetAttrAndNotify(int32_t aNamespaceID,
|
|||
|
||||
LifecycleCallbackArgs args = {
|
||||
nsDependentAtomString(aName),
|
||||
aModType == MutationEventBinding::ADDITION ?
|
||||
aModType == MutationEvent_Binding::ADDITION ?
|
||||
VoidString() : nsDependentAtomString(oldValueAtom),
|
||||
nsDependentAtomString(newValueAtom),
|
||||
(ns.IsEmpty() ? VoidString() : ns)
|
||||
|
@ -2924,7 +2924,7 @@ Element::UnsetAttr(int32_t aNameSpaceID, nsAtom* aName,
|
|||
|
||||
if (aNotify) {
|
||||
nsNodeUtils::AttributeWillChange(this, aNameSpaceID, aName,
|
||||
MutationEventBinding::REMOVAL,
|
||||
MutationEvent_Binding::REMOVAL,
|
||||
nullptr);
|
||||
}
|
||||
|
||||
|
@ -3007,7 +3007,7 @@ Element::UnsetAttr(int32_t aNameSpaceID, nsAtom* aName,
|
|||
// We can always pass oldValue here since there is no new value which could
|
||||
// have corrupted it.
|
||||
nsNodeUtils::AttributeChanged(this, aNameSpaceID, aName,
|
||||
MutationEventBinding::REMOVAL, &oldValue);
|
||||
MutationEvent_Binding::REMOVAL, &oldValue);
|
||||
}
|
||||
|
||||
if (aNameSpaceID == kNameSpaceID_None && aName == nsGkAtoms::dir) {
|
||||
|
@ -3024,7 +3024,7 @@ Element::UnsetAttr(int32_t aNameSpaceID, nsAtom* aName,
|
|||
oldValue.ToString(value);
|
||||
if (!value.IsEmpty())
|
||||
mutation.mPrevAttrValue = NS_Atomize(value);
|
||||
mutation.mAttrChange = MutationEventBinding::REMOVAL;
|
||||
mutation.mAttrChange = MutationEvent_Binding::REMOVAL;
|
||||
|
||||
mozAutoSubtreeModified subtree(OwnerDoc(), this);
|
||||
(new AsyncEventDispatcher(this, mutation))->RunDOMEventWhenSafe();
|
||||
|
|
|
@ -680,8 +680,8 @@ public:
|
|||
* @param aOldValue [out] Set to the old value of the attribute, but only if
|
||||
* there are event listeners. If set, the type of aOldValue will be either
|
||||
* nsAttrValue::eString or nsAttrValue::eAtom.
|
||||
* @param aModType [out] Set to MutationEventBinding::MODIFICATION or to
|
||||
* MutationEventBinding::ADDITION, but only if this helper returns true
|
||||
* @param aModType [out] Set to MutationEvent_Binding::MODIFICATION or to
|
||||
* MutationEvent_Binding::ADDITION, but only if this helper returns true
|
||||
* @param aHasListeners [out] Set to true if there are mutation event
|
||||
* listeners listening for NS_EVENT_BITS_MUTATION_ATTRMODIFIED
|
||||
* @param aOldValueSet [out] Indicates whether an old attribute value has been
|
||||
|
@ -707,8 +707,8 @@ public:
|
|||
* @param aOldValue [out] Set to the old value of the attribute, but only if
|
||||
* there are event listeners. If set, the type of aOldValue will be either
|
||||
* nsAttrValue::eString or nsAttrValue::eAtom.
|
||||
* @param aModType [out] Set to MutationEventBinding::MODIFICATION or to
|
||||
* MutationEventBinding::ADDITION, but only if this helper returns true
|
||||
* @param aModType [out] Set to MutationEvent_Binding::MODIFICATION or to
|
||||
* MutationEvent_Binding::ADDITION, but only if this helper returns true
|
||||
* @param aHasListeners [out] Set to true if there are mutation event
|
||||
* listeners listening for NS_EVENT_BITS_MUTATION_ATTRMODIFIED
|
||||
* @param aOldValueSet [out] Indicates whether an old attribute value has been
|
||||
|
@ -1700,7 +1700,7 @@ protected:
|
|||
* non-null value does guarantee that a scripted caller
|
||||
* with the given principal is directly responsible for
|
||||
* the attribute change.
|
||||
* @param aModType MutationEventBinding::MODIFICATION or ADDITION. Only
|
||||
* @param aModType MutationEvent_Binding::MODIFICATION or ADDITION. Only
|
||||
* needed if aFireMutation or aNotify is true.
|
||||
* @param aFireMutation should mutation-events be fired?
|
||||
* @param aNotify should we notify document-observers?
|
||||
|
|
|
@ -2034,7 +2034,7 @@ JSObject*
|
|||
EventSource::WrapObject(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return EventSourceBinding::Wrap(aCx, this, aGivenProto);
|
||||
return EventSource_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -328,7 +328,7 @@ FormData::SetNameDirectoryPair(FormDataTuple* aData,
|
|||
/* virtual */ JSObject*
|
||||
FormData::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return FormDataBinding::Wrap(aCx, this, aGivenProto);
|
||||
return FormData_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<FormData>
|
||||
|
|
|
@ -503,7 +503,7 @@ JSObject*
|
|||
nsAttrChildContentList::WrapObject(JSContext *cx,
|
||||
JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return NodeListBinding::Wrap(cx, this, aGivenProto);
|
||||
return NodeList_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
|
|
|
@ -51,7 +51,7 @@ IdleDeadline::~IdleDeadline()
|
|||
JSObject*
|
||||
IdleDeadline::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return IdleDeadlineBinding::Wrap(aCx, this, aGivenProto);
|
||||
return IdleDeadline_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
|
|
|
@ -33,7 +33,7 @@ IntlUtils::~IntlUtils()
|
|||
JSObject*
|
||||
IntlUtils::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return IntlUtilsBinding::Wrap(aCx, this, aGivenProto);
|
||||
return IntlUtils_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1003,7 +1003,7 @@ Location::CallerSubsumes(nsIPrincipal* aSubjectPrincipal)
|
|||
JSObject*
|
||||
Location::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return LocationBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Location_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // dom namespace
|
||||
|
|
|
@ -133,7 +133,7 @@ MozQueryInterface::LegacyCall(JSContext* cx, JS::Handle<JS::Value> thisv,
|
|||
bool
|
||||
MozQueryInterface::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
|
||||
{
|
||||
return MozQueryInterfaceBinding::Wrap(aCx, this, aGivenProto, aReflector);
|
||||
return MozQueryInterface_Binding::Wrap(aCx, this, aGivenProto, aReflector);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -1379,7 +1379,7 @@ Navigator::NotifyVRDisplaysUpdated()
|
|||
void
|
||||
Navigator::NotifyActiveVRDisplaysChanged()
|
||||
{
|
||||
NavigatorBinding::ClearCachedActiveVRDisplaysValue(this);
|
||||
Navigator_Binding::ClearCachedActiveVRDisplaysValue(this);
|
||||
}
|
||||
|
||||
VRServiceTest*
|
||||
|
@ -1497,7 +1497,7 @@ Navigator::OnNavigation()
|
|||
JSObject*
|
||||
Navigator::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return NavigatorBinding::Wrap(cx, this, aGivenProto);
|
||||
return Navigator_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/* static */
|
||||
|
@ -1644,7 +1644,7 @@ Navigator::AppName(nsAString& aAppName, bool aUsePrefOverriddenValue)
|
|||
void
|
||||
Navigator::ClearUserAgentCache()
|
||||
{
|
||||
NavigatorBinding::ClearCachedUserAgentValue(this);
|
||||
Navigator_Binding::ClearCachedUserAgentValue(this);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -142,7 +142,7 @@ public:
|
|||
nsAString& aUserAgent);
|
||||
|
||||
// Clears the user agent cache by calling:
|
||||
// NavigatorBinding::ClearCachedUserAgentValue(this);
|
||||
// Navigator_Binding::ClearCachedUserAgentValue(this);
|
||||
void ClearUserAgentCache();
|
||||
|
||||
bool Vibrate(uint32_t aDuration);
|
||||
|
|
|
@ -202,7 +202,7 @@ NodeIterator::NextOrPrevNode(NodePointer::MoveToMethodType aMove,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
mPointer = mWorkingPointer;
|
||||
return testNode.forget();
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ void NodeIterator::ContentRemoved(nsIContent* aChild,
|
|||
bool
|
||||
NodeIterator::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
|
||||
{
|
||||
return NodeIteratorBinding::Wrap(cx, this, aGivenProto, aReflector);
|
||||
return NodeIterator_Binding::Wrap(cx, this, aGivenProto, aReflector);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -31,7 +31,7 @@ ParentProcessMessageManager::WrapObject(JSContext* aCx,
|
|||
{
|
||||
MOZ_ASSERT(nsContentUtils::IsSystemCaller(aCx));
|
||||
|
||||
return ParentProcessMessageManagerBinding::Wrap(aCx, this, aGivenProto);
|
||||
return ParentProcessMessageManager_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -132,9 +132,9 @@ ProcessGlobal::WrapGlobalObject(JSContext* aCx,
|
|||
JS::RealmOptions& aOptions,
|
||||
JS::MutableHandle<JSObject*> aReflector)
|
||||
{
|
||||
bool ok = ContentProcessMessageManagerBinding::Wrap(aCx, this, this, aOptions,
|
||||
nsJSPrincipals::get(mPrincipal),
|
||||
true, aReflector);
|
||||
bool ok = ContentProcessMessageManager_Binding::Wrap(aCx, this, this, aOptions,
|
||||
nsJSPrincipals::get(mPrincipal),
|
||||
true, aReflector);
|
||||
if (ok) {
|
||||
// Since we can't rewrap we have to preserve the global's wrapper here.
|
||||
PreserveWrapper(ToSupports(this));
|
||||
|
|
|
@ -34,7 +34,7 @@ ProcessMessageManager::WrapObject(JSContext* aCx,
|
|||
{
|
||||
MOZ_ASSERT(nsContentUtils::IsSystemCaller(aCx));
|
||||
|
||||
return ProcessMessageManagerBinding::Wrap(aCx, this, aGivenProto);
|
||||
return ProcessMessageManager_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -584,7 +584,7 @@ ScreenOrientation::DispatchChangeEvent()
|
|||
JSObject*
|
||||
ScreenOrientation::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return ScreenOrientationBinding::Wrap(aCx, this, aGivenProto);
|
||||
return ScreenOrientation_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -3863,7 +3863,7 @@ Selection::ResetColors(ErrorResult& aRv)
|
|||
JSObject*
|
||||
Selection::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return mozilla::dom::SelectionBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::Selection_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
// AutoHideSelectionChanges
|
||||
|
|
|
@ -122,7 +122,7 @@ ShadowRoot::SetIsComposedDocParticipant(bool aIsComposedDocParticipant)
|
|||
JSObject*
|
||||
ShadowRoot::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return mozilla::dom::ShadowRootBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::ShadowRoot_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -181,7 +181,7 @@ StructuredCloneBlob::WriteStructuredClone(JSContext* aCx, JSStructuredCloneWrite
|
|||
bool
|
||||
StructuredCloneBlob::WrapObject(JSContext* aCx, JS::HandleObject aGivenProto, JS::MutableHandleObject aResult)
|
||||
{
|
||||
return StructuredCloneHolderBinding::Wrap(aCx, this, aGivenProto, aResult);
|
||||
return StructuredCloneHolder_Binding::Wrap(aCx, this, aGivenProto, aResult);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(StyleSheetList)
|
|||
/* virtual */ JSObject*
|
||||
StyleSheetList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return StyleSheetListBinding::Wrap(aCx, this, aGivenProto);
|
||||
return StyleSheetList_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -31,7 +31,7 @@ SubtleCrypto::SubtleCrypto(nsIGlobalObject* aParent)
|
|||
JSObject*
|
||||
SubtleCrypto::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return SubtleCryptoBinding::Wrap(aCx, this, aGivenProto);
|
||||
return SubtleCrypto_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
#define SUBTLECRYPTO_METHOD_BODY(Operation, aRv, ...) \
|
||||
|
|
|
@ -78,7 +78,7 @@ TreeWalker::ParentNode(ErrorResult& aResult)
|
|||
if (aResult.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
mCurrentNode = node;
|
||||
return node.forget();
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ TreeWalker::PreviousNode(ErrorResult& aResult)
|
|||
}
|
||||
|
||||
nsINode *lastChild;
|
||||
while (filtered != NodeFilterBinding::FILTER_REJECT &&
|
||||
while (filtered != NodeFilter_Binding::FILTER_REJECT &&
|
||||
(lastChild = node->GetLastChild())) {
|
||||
node = lastChild;
|
||||
filtered = TestNode(node, aResult);
|
||||
|
@ -136,7 +136,7 @@ TreeWalker::PreviousNode(ErrorResult& aResult)
|
|||
}
|
||||
}
|
||||
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
mCurrentNode = node;
|
||||
return node.forget();
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ TreeWalker::PreviousNode(ErrorResult& aResult)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
mCurrentNode = node;
|
||||
return node.forget();
|
||||
}
|
||||
|
@ -168,14 +168,14 @@ TreeWalker::PreviousNode(ErrorResult& aResult)
|
|||
already_AddRefed<nsINode>
|
||||
TreeWalker::NextNode(ErrorResult& aResult)
|
||||
{
|
||||
int16_t filtered = NodeFilterBinding::FILTER_ACCEPT; // pre-init for inner loop
|
||||
int16_t filtered = NodeFilter_Binding::FILTER_ACCEPT; // pre-init for inner loop
|
||||
|
||||
nsCOMPtr<nsINode> node = mCurrentNode;
|
||||
|
||||
while (1) {
|
||||
|
||||
nsINode *firstChild;
|
||||
while (filtered != NodeFilterBinding::FILTER_REJECT &&
|
||||
while (filtered != NodeFilter_Binding::FILTER_REJECT &&
|
||||
(firstChild = node->GetFirstChild())) {
|
||||
node = firstChild;
|
||||
|
||||
|
@ -184,7 +184,7 @@ TreeWalker::NextNode(ErrorResult& aResult)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
// Node found
|
||||
mCurrentNode = node;
|
||||
return node.forget();
|
||||
|
@ -215,7 +215,7 @@ TreeWalker::NextNode(ErrorResult& aResult)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
// Node found
|
||||
mCurrentNode = node;
|
||||
return node.forget();
|
||||
|
@ -249,11 +249,11 @@ TreeWalker::FirstChildInternal(bool aReversed, ErrorResult& aResult)
|
|||
}
|
||||
|
||||
switch (filtered) {
|
||||
case NodeFilterBinding::FILTER_ACCEPT:
|
||||
case NodeFilter_Binding::FILTER_ACCEPT:
|
||||
// Node found
|
||||
mCurrentNode = node;
|
||||
return node.forget();
|
||||
case NodeFilterBinding::FILTER_SKIP: {
|
||||
case NodeFilter_Binding::FILTER_SKIP: {
|
||||
nsINode *child = aReversed ? node->GetLastChild()
|
||||
: node->GetFirstChild();
|
||||
if (child) {
|
||||
|
@ -262,7 +262,7 @@ TreeWalker::FirstChildInternal(bool aReversed, ErrorResult& aResult)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case NodeFilterBinding::FILTER_REJECT:
|
||||
case NodeFilter_Binding::FILTER_REJECT:
|
||||
// Keep searching
|
||||
break;
|
||||
}
|
||||
|
@ -317,14 +317,14 @@ TreeWalker::NextSiblingInternal(bool aReversed, ErrorResult& aResult)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
// Node found
|
||||
mCurrentNode = node;
|
||||
return node.forget();
|
||||
}
|
||||
|
||||
// If rejected or no children, try a sibling
|
||||
if (filtered == NodeFilterBinding::FILTER_REJECT ||
|
||||
if (filtered == NodeFilter_Binding::FILTER_REJECT ||
|
||||
!(sibling = aReversed ? node->GetLastChild()
|
||||
: node->GetFirstChild())) {
|
||||
sibling = aReversed ? node->GetPreviousSibling()
|
||||
|
@ -343,7 +343,7 @@ TreeWalker::NextSiblingInternal(bool aReversed, ErrorResult& aResult)
|
|||
if (aResult.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
if (filtered == NodeFilterBinding::FILTER_ACCEPT) {
|
||||
if (filtered == NodeFilter_Binding::FILTER_ACCEPT) {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -352,7 +352,7 @@ TreeWalker::NextSiblingInternal(bool aReversed, ErrorResult& aResult)
|
|||
bool
|
||||
TreeWalker::WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
|
||||
{
|
||||
return TreeWalkerBinding::Wrap(aCx, this, aGivenProto, aReflector);
|
||||
return TreeWalker_Binding::Wrap(aCx, this, aGivenProto, aReflector);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -52,7 +52,7 @@ WebKitCSSMatrix::Constructor(const GlobalObject& aGlobal,
|
|||
JSObject*
|
||||
WebKitCSSMatrix::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return WebKitCSSMatrixBinding::Wrap(aCx, this, aGivenProto);
|
||||
return WebKitCSSMatrix_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
WebKitCSSMatrix*
|
||||
|
|
|
@ -246,7 +246,7 @@ static const DOMIfaceAndProtoJSClass WindowNamedPropertiesClass = {
|
|||
0,
|
||||
&sEmptyNativePropertyHooks,
|
||||
"[object WindowProperties]",
|
||||
EventTargetBinding::GetProtoObject
|
||||
EventTarget_Binding::GetProtoObject
|
||||
};
|
||||
|
||||
// static
|
||||
|
|
|
@ -118,7 +118,7 @@ NS_IMPL_RELEASE_INHERITED(nsSimpleContentList, nsBaseContentList)
|
|||
JSObject*
|
||||
nsSimpleContentList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return NodeListBinding::Wrap(cx, this, aGivenProto);
|
||||
return NodeList_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_INHERITED(nsEmptyContentList, nsBaseContentList, mRoot)
|
||||
|
@ -134,7 +134,7 @@ NS_IMPL_RELEASE_INHERITED(nsEmptyContentList, nsBaseContentList)
|
|||
JSObject*
|
||||
nsEmptyContentList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return HTMLCollectionBinding::Wrap(cx, this, aGivenProto);
|
||||
return HTMLCollection_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
mozilla::dom::Element*
|
||||
|
@ -461,7 +461,7 @@ nsContentList::~nsContentList()
|
|||
JSObject*
|
||||
nsContentList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return HTMLCollectionBinding::Wrap(cx, this, aGivenProto);
|
||||
return HTMLCollection_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS_INHERITED(nsContentList, nsBaseContentList,
|
||||
|
@ -1037,7 +1037,7 @@ nsContentList::AssertInSync()
|
|||
JSObject*
|
||||
nsCachableElementsByNameNodeList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return NodeListBinding::Wrap(cx, this, aGivenProto);
|
||||
return NodeList_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1064,7 +1064,7 @@ nsCachableElementsByNameNodeList::AttributeChanged(Element* aElement,
|
|||
JSObject*
|
||||
nsCacheableFuncStringHTMLCollection::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return HTMLCollectionBinding::Wrap(cx, this, aGivenProto);
|
||||
return HTMLCollection_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
|
@ -1073,7 +1073,7 @@ nsCacheableFuncStringHTMLCollection::WrapObject(JSContext *cx, JS::Handle<JSObje
|
|||
JSObject*
|
||||
nsLabelsNodeList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return NodeListBinding::Wrap(cx, this, aGivenProto);
|
||||
return NodeList_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -2731,9 +2731,9 @@ bool
|
|||
nsContentUtils::PositionIsBefore(nsINode* aNode1, nsINode* aNode2)
|
||||
{
|
||||
return (aNode2->CompareDocumentPosition(*aNode1) &
|
||||
(NodeBinding::DOCUMENT_POSITION_PRECEDING |
|
||||
NodeBinding::DOCUMENT_POSITION_DISCONNECTED)) ==
|
||||
NodeBinding::DOCUMENT_POSITION_PRECEDING;
|
||||
(Node_Binding::DOCUMENT_POSITION_PRECEDING |
|
||||
Node_Binding::DOCUMENT_POSITION_DISCONNECTED)) ==
|
||||
Node_Binding::DOCUMENT_POSITION_PRECEDING;
|
||||
}
|
||||
|
||||
/* static */
|
||||
|
@ -8509,8 +8509,8 @@ nsContentUtils::SendMouseEvent(const nsCOMPtr<nsIPresShell>& aPresShell,
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
if (aInputSourceArg == MouseEventBinding::MOZ_SOURCE_UNKNOWN) {
|
||||
aInputSourceArg = MouseEventBinding::MOZ_SOURCE_MOUSE;
|
||||
if (aInputSourceArg == MouseEvent_Binding::MOZ_SOURCE_UNKNOWN) {
|
||||
aInputSourceArg = MouseEvent_Binding::MOZ_SOURCE_MOUSE;
|
||||
}
|
||||
|
||||
WidgetMouseEvent event(true, msg, widget,
|
||||
|
@ -10430,8 +10430,8 @@ nsContentUtils::QueryTriggeringPrincipal(nsIContent* aLoadingNode,
|
|||
nsAutoString loadingStr;
|
||||
if (aLoadingNode->IsElement()) {
|
||||
aLoadingNode->AsElement()->GetAttr(kNameSpaceID_None,
|
||||
nsGkAtoms::triggeringprincipal,
|
||||
loadingStr);
|
||||
nsGkAtoms::triggeringprincipal,
|
||||
loadingStr);
|
||||
}
|
||||
|
||||
// Fall back if 'triggeringprincipal' isn't specified,
|
||||
|
@ -10862,7 +10862,7 @@ nsContentUtils::IsOverridingWindowName(const nsAString& aName)
|
|||
// wrapping our templated function in a macro.
|
||||
#define EXTRACT_EXN_VALUES(T, ...) \
|
||||
ExtractExceptionValues<mozilla::dom::prototypes::id::T, \
|
||||
T##Binding::NativeType, T>(__VA_ARGS__).isOk()
|
||||
T##_Binding::NativeType, T>(__VA_ARGS__).isOk()
|
||||
|
||||
template <prototypes::ID PrototypeID, class NativeType, typename T>
|
||||
static Result<Ok, nsresult>
|
||||
|
|
|
@ -2088,7 +2088,7 @@ public:
|
|||
bool aMeta = false,
|
||||
// Including MouseEventBinding here leads
|
||||
// to incude loops, unfortunately.
|
||||
uint16_t inputSource = 0 /* MouseEventBinding::MOZ_SOURCE_UNKNOWN */);
|
||||
uint16_t inputSource = 0 /* MouseEvent_Binding::MOZ_SOURCE_UNKNOWN */);
|
||||
|
||||
static bool CheckMayLoad(nsIPrincipal* aPrincipal, nsIChannel* aChannel, bool aAllowIfInheritsPrincipal);
|
||||
|
||||
|
|
|
@ -440,7 +440,7 @@ nsDOMAttributeMap::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
|
|||
/* virtual */ JSObject*
|
||||
nsDOMAttributeMap::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return NamedNodeMapBinding::Wrap(aCx, this, aGivenProto);
|
||||
return NamedNodeMap_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
DocGroup*
|
||||
|
|
|
@ -60,7 +60,7 @@ nsDOMCaretPosition::GetClientRect() const
|
|||
JSObject*
|
||||
nsDOMCaretPosition::WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return mozilla::dom::CaretPositionBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::CaretPosition_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(nsDOMCaretPosition,
|
||||
|
|
|
@ -51,7 +51,7 @@ nsDOMDataChannel::~nsDOMDataChannel()
|
|||
/* virtual */ JSObject*
|
||||
nsDOMDataChannel::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return RTCDataChannelBinding::Wrap(aCx, this, aGivenProto);
|
||||
return RTCDataChannel_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(nsDOMDataChannel)
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
|
||||
{
|
||||
return mozilla::dom::MutationRecordBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::MutationRecord_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
|
@ -411,7 +411,7 @@ public:
|
|||
{
|
||||
// We can reuse AttributeWillChange implementation.
|
||||
AttributeWillChange(aElement, aNameSpaceID, aAttribute,
|
||||
mozilla::dom::MutationEventBinding::MODIFICATION, nullptr);
|
||||
mozilla::dom::MutationEvent_Binding::MODIFICATION, nullptr);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
@ -508,7 +508,7 @@ public:
|
|||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override
|
||||
{
|
||||
return mozilla::dom::MutationObserverBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::MutationObserver_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsISupports* GetParentObject() const
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
bool WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto,
|
||||
JS::MutableHandle<JSObject*> aReflector)
|
||||
{
|
||||
return mozilla::dom::XMLSerializerBinding::Wrap(aCx, this, aGivenProto,
|
||||
return mozilla::dom::XMLSerializer_Binding::Wrap(aCx, this, aGivenProto,
|
||||
aReflector);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -435,6 +435,6 @@ nsDOMTokenList::GetDocGroup() const
|
|||
JSObject*
|
||||
nsDOMTokenList::WrapObject(JSContext *cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return DOMTokenListBinding::Wrap(cx, this, aGivenProto);
|
||||
return DOMTokenList_Binding::Wrap(cx, this, aGivenProto);
|
||||
}
|
||||
|
||||
|
|
|
@ -658,7 +658,7 @@ public:
|
|||
virtual JSObject* WrapObject(JSContext *aCx,
|
||||
JS::Handle<JSObject*> aGivenProto) override
|
||||
{
|
||||
return HTMLCollectionBinding::Wrap(aCx, this, aGivenProto);
|
||||
return HTMLCollection_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
using nsBaseContentList::Item;
|
||||
|
|
|
@ -3400,6 +3400,6 @@ JSObject*
|
|||
nsFrameLoader::WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
JS::RootedObject result(cx);
|
||||
FrameLoaderBinding::Wrap(cx, this, this, aGivenProto, &result);
|
||||
FrameLoader_Binding::Wrap(cx, this, this, aGivenProto, &result);
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -161,6 +161,6 @@ nsGenConImageContent::IntrinsicState() const
|
|||
JSObject*
|
||||
nsGenConImageContent::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return dom::HTMLElementBinding::Wrap(aCx, this, aGivenProto);
|
||||
return dom::HTMLElement_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
|
|
|
@ -5899,8 +5899,8 @@ nsGlobalWindowInner::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
// very likely situation where an event handler will try to read its value.
|
||||
|
||||
if (mNavigator) {
|
||||
NavigatorBinding::ClearCachedLanguageValue(mNavigator);
|
||||
NavigatorBinding::ClearCachedLanguagesValue(mNavigator);
|
||||
Navigator_Binding::ClearCachedLanguageValue(mNavigator);
|
||||
Navigator_Binding::ClearCachedLanguagesValue(mNavigator);
|
||||
}
|
||||
|
||||
// The event has to be dispatched only to the current inner window.
|
||||
|
@ -7698,8 +7698,8 @@ void
|
|||
nsGlobalWindowInner::ClearDocumentDependentSlots(JSContext* aCx)
|
||||
{
|
||||
// If JSAPI OOMs here, there is basically nothing we can do to recover safely.
|
||||
if (!WindowBinding::ClearCachedDocumentValue(aCx, this) ||
|
||||
!WindowBinding::ClearCachedPerformanceValue(aCx, this)) {
|
||||
if (!Window_Binding::ClearCachedDocumentValue(aCx, this) ||
|
||||
!Window_Binding::ClearCachedPerformanceValue(aCx, this)) {
|
||||
MOZ_CRASH("Unhandlable OOM while clearing document dependent slots.");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1607,7 +1607,7 @@ CreateNativeGlobalForInner(JSContext* aCx,
|
|||
uint32_t flags = needComponents ? 0 : xpc::OMIT_COMPONENTS_OBJECT;
|
||||
flags |= xpc::DONT_FIRE_ONNEWGLOBALHOOK;
|
||||
|
||||
if (!WindowBinding::Wrap(aCx, aNewInner, aNewInner, options,
|
||||
if (!Window_Binding::Wrap(aCx, aNewInner, aNewInner, options,
|
||||
nsJSPrincipals::get(aPrincipal), false, aGlobal) ||
|
||||
!xpc::InitGlobalObject(aCx, aGlobal, flags)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
|
@ -55,7 +55,7 @@ nsHistory::GetParentObject() const
|
|||
JSObject*
|
||||
nsHistory::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return HistoryBinding::Wrap(aCx, this, aGivenProto);
|
||||
return History_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
|
|
|
@ -737,11 +737,11 @@ nsINode::CompareDocumentPosition(nsINode& aOtherNode) const
|
|||
}
|
||||
if (GetPreviousSibling() == &aOtherNode) {
|
||||
MOZ_ASSERT(GetParentNode() == aOtherNode.GetParentNode());
|
||||
return NodeBinding::DOCUMENT_POSITION_PRECEDING;
|
||||
return Node_Binding::DOCUMENT_POSITION_PRECEDING;
|
||||
}
|
||||
if (GetNextSibling() == &aOtherNode) {
|
||||
MOZ_ASSERT(GetParentNode() == aOtherNode.GetParentNode());
|
||||
return NodeBinding::DOCUMENT_POSITION_FOLLOWING;
|
||||
return Node_Binding::DOCUMENT_POSITION_FOLLOWING;
|
||||
}
|
||||
|
||||
AutoTArray<const nsINode*, 32> parents1, parents2;
|
||||
|
@ -772,16 +772,16 @@ nsINode::CompareDocumentPosition(nsINode& aOtherNode) const
|
|||
if (attrName->Equals(attr1->NodeInfo())) {
|
||||
NS_ASSERTION(!attrName->Equals(attr2->NodeInfo()),
|
||||
"Different attrs at same position");
|
||||
return NodeBinding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
|
||||
NodeBinding::DOCUMENT_POSITION_PRECEDING;
|
||||
return Node_Binding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
|
||||
Node_Binding::DOCUMENT_POSITION_PRECEDING;
|
||||
}
|
||||
if (attrName->Equals(attr2->NodeInfo())) {
|
||||
return NodeBinding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
|
||||
NodeBinding::DOCUMENT_POSITION_FOLLOWING;
|
||||
return Node_Binding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
|
||||
Node_Binding::DOCUMENT_POSITION_FOLLOWING;
|
||||
}
|
||||
}
|
||||
MOZ_ASSERT_UNREACHABLE("neither attribute in the element");
|
||||
return NodeBinding::DOCUMENT_POSITION_DISCONNECTED;
|
||||
return Node_Binding::DOCUMENT_POSITION_DISCONNECTED;
|
||||
}
|
||||
|
||||
if (elem) {
|
||||
|
@ -812,12 +812,12 @@ nsINode::CompareDocumentPosition(nsINode& aOtherNode) const
|
|||
const nsINode* top2 = parents2.ElementAt(--pos2);
|
||||
if (top1 != top2) {
|
||||
return top1 < top2 ?
|
||||
(NodeBinding::DOCUMENT_POSITION_PRECEDING |
|
||||
NodeBinding::DOCUMENT_POSITION_DISCONNECTED |
|
||||
NodeBinding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC) :
|
||||
(NodeBinding::DOCUMENT_POSITION_FOLLOWING |
|
||||
NodeBinding::DOCUMENT_POSITION_DISCONNECTED |
|
||||
NodeBinding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC);
|
||||
(Node_Binding::DOCUMENT_POSITION_PRECEDING |
|
||||
Node_Binding::DOCUMENT_POSITION_DISCONNECTED |
|
||||
Node_Binding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC) :
|
||||
(Node_Binding::DOCUMENT_POSITION_FOLLOWING |
|
||||
Node_Binding::DOCUMENT_POSITION_DISCONNECTED |
|
||||
Node_Binding::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC);
|
||||
}
|
||||
|
||||
// Find where the parent chain differs and check indices in the parent.
|
||||
|
@ -831,8 +831,8 @@ nsINode::CompareDocumentPosition(nsINode& aOtherNode) const
|
|||
// ComputeIndexOf will return -1 for the attribute making the
|
||||
// attribute be considered before any child.
|
||||
return parent->ComputeIndexOf(child1) < parent->ComputeIndexOf(child2) ?
|
||||
NodeBinding::DOCUMENT_POSITION_PRECEDING :
|
||||
NodeBinding::DOCUMENT_POSITION_FOLLOWING;
|
||||
Node_Binding::DOCUMENT_POSITION_PRECEDING :
|
||||
Node_Binding::DOCUMENT_POSITION_FOLLOWING;
|
||||
}
|
||||
parent = child1;
|
||||
}
|
||||
|
@ -841,10 +841,10 @@ nsINode::CompareDocumentPosition(nsINode& aOtherNode) const
|
|||
// between the chains. That must mean that one node is an ancestor of the
|
||||
// other. The one with the shortest chain must be the ancestor.
|
||||
return pos1 < pos2 ?
|
||||
(NodeBinding::DOCUMENT_POSITION_PRECEDING |
|
||||
NodeBinding::DOCUMENT_POSITION_CONTAINS) :
|
||||
(NodeBinding::DOCUMENT_POSITION_FOLLOWING |
|
||||
NodeBinding::DOCUMENT_POSITION_CONTAINED_BY);
|
||||
(Node_Binding::DOCUMENT_POSITION_PRECEDING |
|
||||
Node_Binding::DOCUMENT_POSITION_CONTAINS) :
|
||||
(Node_Binding::DOCUMENT_POSITION_FOLLOWING |
|
||||
Node_Binding::DOCUMENT_POSITION_CONTAINED_BY);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -302,23 +302,23 @@ public:
|
|||
|
||||
// XXXbz Maybe we should codegen a class holding these constants and
|
||||
// inherit from it...
|
||||
static const auto ELEMENT_NODE = mozilla::dom::NodeBinding::ELEMENT_NODE;
|
||||
static const auto ATTRIBUTE_NODE = mozilla::dom::NodeBinding::ATTRIBUTE_NODE;
|
||||
static const auto TEXT_NODE = mozilla::dom::NodeBinding::TEXT_NODE;
|
||||
static const auto ELEMENT_NODE = mozilla::dom::Node_Binding::ELEMENT_NODE;
|
||||
static const auto ATTRIBUTE_NODE = mozilla::dom::Node_Binding::ATTRIBUTE_NODE;
|
||||
static const auto TEXT_NODE = mozilla::dom::Node_Binding::TEXT_NODE;
|
||||
static const auto CDATA_SECTION_NODE =
|
||||
mozilla::dom::NodeBinding::CDATA_SECTION_NODE;
|
||||
mozilla::dom::Node_Binding::CDATA_SECTION_NODE;
|
||||
static const auto ENTITY_REFERENCE_NODE =
|
||||
mozilla::dom::NodeBinding::ENTITY_REFERENCE_NODE;
|
||||
static const auto ENTITY_NODE = mozilla::dom::NodeBinding::ENTITY_NODE;
|
||||
mozilla::dom::Node_Binding::ENTITY_REFERENCE_NODE;
|
||||
static const auto ENTITY_NODE = mozilla::dom::Node_Binding::ENTITY_NODE;
|
||||
static const auto PROCESSING_INSTRUCTION_NODE =
|
||||
mozilla::dom::NodeBinding::PROCESSING_INSTRUCTION_NODE;
|
||||
static const auto COMMENT_NODE = mozilla::dom::NodeBinding::COMMENT_NODE;
|
||||
static const auto DOCUMENT_NODE = mozilla::dom::NodeBinding::DOCUMENT_NODE;
|
||||
mozilla::dom::Node_Binding::PROCESSING_INSTRUCTION_NODE;
|
||||
static const auto COMMENT_NODE = mozilla::dom::Node_Binding::COMMENT_NODE;
|
||||
static const auto DOCUMENT_NODE = mozilla::dom::Node_Binding::DOCUMENT_NODE;
|
||||
static const auto DOCUMENT_TYPE_NODE =
|
||||
mozilla::dom::NodeBinding::DOCUMENT_TYPE_NODE;
|
||||
mozilla::dom::Node_Binding::DOCUMENT_TYPE_NODE;
|
||||
static const auto DOCUMENT_FRAGMENT_NODE =
|
||||
mozilla::dom::NodeBinding::DOCUMENT_FRAGMENT_NODE;
|
||||
static const auto NOTATION_NODE = mozilla::dom::NodeBinding::NOTATION_NODE;
|
||||
mozilla::dom::Node_Binding::DOCUMENT_FRAGMENT_NODE;
|
||||
static const auto NOTATION_NODE = mozilla::dom::Node_Binding::NOTATION_NODE;
|
||||
|
||||
template<class T>
|
||||
using Sequence = mozilla::dom::Sequence<T>;
|
||||
|
|
|
@ -181,9 +181,9 @@ nsInProcessTabChildGlobal::WrapGlobalObject(JSContext* aCx,
|
|||
JS::RealmOptions& aOptions,
|
||||
JS::MutableHandle<JSObject*> aReflector)
|
||||
{
|
||||
bool ok = ContentFrameMessageManagerBinding::Wrap(aCx, this, this, aOptions,
|
||||
nsJSPrincipals::get(mPrincipal),
|
||||
true, aReflector);
|
||||
bool ok = ContentFrameMessageManager_Binding::Wrap(aCx, this, this, aOptions,
|
||||
nsJSPrincipals::get(mPrincipal),
|
||||
true, aReflector);
|
||||
if (ok) {
|
||||
// Since we can't rewrap we have to preserve the global's wrapper here.
|
||||
PreserveWrapper(ToSupports(this));
|
||||
|
|
|
@ -44,7 +44,7 @@ nsMimeTypeArray::~nsMimeTypeArray()
|
|||
JSObject*
|
||||
nsMimeTypeArray::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return MimeTypeArrayBinding::Wrap(aCx, this, aGivenProto);
|
||||
return MimeTypeArray_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -216,7 +216,7 @@ nsMimeType::GetParentObject() const
|
|||
JSObject*
|
||||
nsMimeType::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return MimeTypeBinding::Wrap(aCx, this, aGivenProto);
|
||||
return MimeType_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -55,7 +55,7 @@ nsPluginArray::GetParentObject() const
|
|||
JSObject*
|
||||
nsPluginArray::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return PluginArrayBinding::Wrap(aCx, this, aGivenProto);
|
||||
return PluginArray_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsPluginArray)
|
||||
|
@ -435,7 +435,7 @@ nsPluginElement::GetParentObject() const
|
|||
JSObject*
|
||||
nsPluginElement::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return PluginBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Plugin_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -44,7 +44,7 @@ using namespace mozilla::dom;
|
|||
JSObject*
|
||||
nsRange::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return RangeBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Range_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
DocGroup*
|
||||
|
@ -2293,25 +2293,25 @@ nsRange::CompareBoundaryPoints(uint16_t aHow, nsRange& aOtherRange,
|
|||
uint32_t ourOffset, otherOffset;
|
||||
|
||||
switch (aHow) {
|
||||
case RangeBinding::START_TO_START:
|
||||
case Range_Binding::START_TO_START:
|
||||
ourNode = mStart.Container();
|
||||
ourOffset = mStart.Offset();
|
||||
otherNode = aOtherRange.GetStartContainer();
|
||||
otherOffset = aOtherRange.StartOffset();
|
||||
break;
|
||||
case RangeBinding::START_TO_END:
|
||||
case Range_Binding::START_TO_END:
|
||||
ourNode = mEnd.Container();
|
||||
ourOffset = mEnd.Offset();
|
||||
otherNode = aOtherRange.GetStartContainer();
|
||||
otherOffset = aOtherRange.StartOffset();
|
||||
break;
|
||||
case RangeBinding::END_TO_START:
|
||||
case Range_Binding::END_TO_START:
|
||||
ourNode = mStart.Container();
|
||||
ourOffset = mStart.Offset();
|
||||
otherNode = aOtherRange.GetEndContainer();
|
||||
otherOffset = aOtherRange.EndOffset();
|
||||
break;
|
||||
case RangeBinding::END_TO_END:
|
||||
case Range_Binding::END_TO_END:
|
||||
ourNode = mEnd.Container();
|
||||
ourOffset = mEnd.Offset();
|
||||
otherNode = aOtherRange.GetEndContainer();
|
||||
|
|
|
@ -299,7 +299,7 @@ nsScreen::IsDeviceSizePageSize()
|
|||
JSObject*
|
||||
nsScreen::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return ScreenBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Screen_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
@ -101,8 +101,8 @@ nsStyledElement::InlineStyleDeclarationWillChange(MutationClosureData& aData)
|
|||
}
|
||||
|
||||
aData.mModType = modification ?
|
||||
static_cast<uint8_t>(MutationEventBinding::MODIFICATION) :
|
||||
static_cast<uint8_t>(MutationEventBinding::ADDITION);
|
||||
static_cast<uint8_t>(MutationEvent_Binding::MODIFICATION) :
|
||||
static_cast<uint8_t>(MutationEvent_Binding::ADDITION);
|
||||
nsNodeUtils::AttributeWillChange(this, kNameSpaceID_None,
|
||||
nsGkAtoms::style,
|
||||
aData.mModType, nullptr);
|
||||
|
|
|
@ -104,7 +104,7 @@ NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED_0(nsTextNode, CharacterData)
|
|||
JSObject*
|
||||
nsTextNode::WrapNode(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return TextBinding::Wrap(aCx, this, aGivenProto);
|
||||
return Text_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -50,12 +50,12 @@ nsTraversal::TestNode(nsINode* aNode, mozilla::ErrorResult& aResult)
|
|||
uint16_t nodeType = aNode->NodeType();
|
||||
|
||||
if (nodeType <= 12 && !((1 << (nodeType-1)) & mWhatToShow)) {
|
||||
return NodeFilterBinding::FILTER_SKIP;
|
||||
return NodeFilter_Binding::FILTER_SKIP;
|
||||
}
|
||||
|
||||
if (!mFilter) {
|
||||
// No filter, just accept
|
||||
return NodeFilterBinding::FILTER_ACCEPT;
|
||||
return NodeFilter_Binding::FILTER_ACCEPT;
|
||||
}
|
||||
|
||||
AutoRestore<bool> inAcceptNode(mInAcceptNode);
|
||||
|
|
|
@ -1123,15 +1123,15 @@ nsTreeSanitizer::SanitizeStyleSheet(const nsAString& aOriginal,
|
|||
didSanitize = true;
|
||||
// Ignore these rule types.
|
||||
break;
|
||||
case CSSRuleBinding::NAMESPACE_RULE:
|
||||
case CSSRuleBinding::FONT_FACE_RULE: {
|
||||
case CSSRule_Binding::NAMESPACE_RULE:
|
||||
case CSSRule_Binding::FONT_FACE_RULE: {
|
||||
// Append @namespace and @font-face rules verbatim.
|
||||
nsAutoString cssText;
|
||||
rule->GetCssText(cssText);
|
||||
aSanitized.Append(cssText);
|
||||
break;
|
||||
}
|
||||
case CSSRuleBinding::STYLE_RULE: {
|
||||
case CSSRule_Binding::STYLE_RULE: {
|
||||
// For style rules, we will just look for and remove the
|
||||
// -moz-binding properties.
|
||||
auto styleRule = static_cast<BindingStyleRule*>(rule);
|
||||
|
|
|
@ -331,7 +331,7 @@ nsWindowRoot::GetParentObject()
|
|||
JSObject*
|
||||
nsWindowRoot::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return mozilla::dom::WindowRootBinding::Wrap(aCx, this, aGivenProto);
|
||||
return mozilla::dom::WindowRoot_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -56,7 +56,7 @@ BatteryManager::Shutdown()
|
|||
JSObject*
|
||||
BatteryManager::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return BatteryManagerBinding::Wrap(aCx, this, aGivenProto);
|
||||
return BatteryManager_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace dom {
|
|||
|
||||
// Forward declare GetConstructorObject methods.
|
||||
#define HTML_TAG(_tag, _classname, _interfacename) \
|
||||
namespace HTML##_interfacename##ElementBinding { \
|
||||
namespace HTML##_interfacename##Element_Binding { \
|
||||
JSObject* GetConstructorObject(JSContext*); \
|
||||
}
|
||||
#define HTML_OTHER(_tag)
|
||||
|
@ -77,12 +77,12 @@ namespace HTML##_interfacename##ElementBinding { \
|
|||
typedef JSObject* (*constructorGetterCallback)(JSContext*);
|
||||
|
||||
// Mapping of html tag and GetConstructorObject methods.
|
||||
#define HTML_TAG(_tag, _classname, _interfacename) HTML##_interfacename##ElementBinding::GetConstructorObject,
|
||||
#define HTML_TAG(_tag, _classname, _interfacename) HTML##_interfacename##Element_Binding::GetConstructorObject,
|
||||
#define HTML_OTHER(_tag) nullptr,
|
||||
// We use eHTMLTag_foo (where foo is the tag) which is defined in nsHTMLTags.h
|
||||
// to index into this array.
|
||||
static const constructorGetterCallback sConstructorGetterCallback[] = {
|
||||
HTMLUnknownElementBinding::GetConstructorObject,
|
||||
HTMLUnknownElement_Binding::GetConstructorObject,
|
||||
#include "nsHTMLTagList.h"
|
||||
#undef HTML_TAG
|
||||
#undef HTML_OTHER
|
||||
|
@ -3800,9 +3800,9 @@ HTMLConstructor(JSContext* aCx, unsigned aArgc, JS::Value* aVp,
|
|||
|
||||
JS::Rooted<JSObject*> constructor(aCx);
|
||||
if (ns == kNameSpaceID_XUL) {
|
||||
constructor = XULElementBinding::GetConstructorObject(aCx);
|
||||
constructor = XULElement_Binding::GetConstructorObject(aCx);
|
||||
} else {
|
||||
constructor = HTMLElementBinding::GetConstructorObject(aCx);
|
||||
constructor = HTMLElement_Binding::GetConstructorObject(aCx);
|
||||
}
|
||||
|
||||
if (!constructor) {
|
||||
|
@ -3833,9 +3833,9 @@ HTMLConstructor(JSContext* aCx, unsigned aArgc, JS::Value* aVp,
|
|||
definition->mLocalName == nsGkAtoms::popup ||
|
||||
definition->mLocalName == nsGkAtoms::panel ||
|
||||
definition->mLocalName == nsGkAtoms::tooltip) {
|
||||
cb = XULPopupElementBinding::GetConstructorObject;
|
||||
cb = XULPopupElement_Binding::GetConstructorObject;
|
||||
} else {
|
||||
cb = XULElementBinding::GetConstructorObject;
|
||||
cb = XULElement_Binding::GetConstructorObject;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -194,19 +194,19 @@ IsDOMObject(JSObject* obj)
|
|||
// can be anything that converts to JSObject*.
|
||||
#define UNWRAP_OBJECT(Interface, obj, value) \
|
||||
mozilla::dom::UnwrapObject<mozilla::dom::prototypes::id::Interface, \
|
||||
mozilla::dom::Interface##Binding::NativeType>(obj, value)
|
||||
mozilla::dom::Interface##_Binding::NativeType>(obj, value)
|
||||
|
||||
// Test whether the given object is an instance of the given interface.
|
||||
#define IS_INSTANCE_OF(Interface, obj) \
|
||||
mozilla::dom::IsInstanceOf<mozilla::dom::prototypes::id::Interface, \
|
||||
mozilla::dom::Interface##Binding::NativeType>(obj)
|
||||
mozilla::dom::Interface##_Binding::NativeType>(obj)
|
||||
|
||||
// Unwrap the given non-wrapper object. This can be used with any obj that
|
||||
// converts to JSObject*; as long as that JSObject* is live the return value
|
||||
// will be valid.
|
||||
#define UNWRAP_NON_WRAPPER_OBJECT(Interface, obj, value) \
|
||||
mozilla::dom::UnwrapNonWrapperObject<mozilla::dom::prototypes::id::Interface, \
|
||||
mozilla::dom::Interface##Binding::NativeType>(obj, value)
|
||||
mozilla::dom::Interface##_Binding::NativeType>(obj, value)
|
||||
|
||||
// Some callers don't want to set an exception when unwrapping fails
|
||||
// (for example, overload resolution uses unwrapping to tell what sort
|
||||
|
|
|
@ -144,7 +144,7 @@ bool
|
|||
TestFunctions::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto,
|
||||
JS::MutableHandle<JSObject*> aWrapper)
|
||||
{
|
||||
return TestFunctionsBinding::Wrap(aCx, this, aGivenProto, aWrapper);
|
||||
return TestFunctions_Binding::Wrap(aCx, this, aGivenProto, aWrapper);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ TestInterfaceIterableDouble::Constructor(const GlobalObject& aGlobal,
|
|||
JSObject*
|
||||
TestInterfaceIterableDouble::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return TestInterfaceIterableDoubleBinding::Wrap(aCx, this, aGivenProto);
|
||||
return TestInterfaceIterableDouble_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsPIDOMWindowInner*
|
||||
|
|
|
@ -52,7 +52,7 @@ TestInterfaceIterableDoubleUnion::Constructor(const GlobalObject& aGlobal,
|
|||
JSObject*
|
||||
TestInterfaceIterableDoubleUnion::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return TestInterfaceIterableDoubleUnionBinding::Wrap(aCx, this, aGivenProto);
|
||||
return TestInterfaceIterableDoubleUnion_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsPIDOMWindowInner*
|
||||
|
|
|
@ -48,7 +48,7 @@ TestInterfaceIterableSingle::Constructor(const GlobalObject& aGlobal,
|
|||
JSObject*
|
||||
TestInterfaceIterableSingle::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return TestInterfaceIterableSingleBinding::Wrap(aCx, this, aGivenProto);
|
||||
return TestInterfaceIterableSingle_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsPIDOMWindowInner*
|
||||
|
|
|
@ -45,7 +45,7 @@ TestInterfaceMaplike::Constructor(const GlobalObject& aGlobal,
|
|||
JSObject*
|
||||
TestInterfaceMaplike::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return TestInterfaceMaplikeBinding::Wrap(aCx, this, aGivenProto);
|
||||
return TestInterfaceMaplike_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsPIDOMWindowInner*
|
||||
|
@ -58,28 +58,28 @@ void
|
|||
TestInterfaceMaplike::SetInternal(const nsAString& aKey, int32_t aValue)
|
||||
{
|
||||
ErrorResult rv;
|
||||
TestInterfaceMaplikeBinding::MaplikeHelpers::Set(this, aKey, aValue, rv);
|
||||
TestInterfaceMaplike_Binding::MaplikeHelpers::Set(this, aKey, aValue, rv);
|
||||
}
|
||||
|
||||
void
|
||||
TestInterfaceMaplike::ClearInternal()
|
||||
{
|
||||
ErrorResult rv;
|
||||
TestInterfaceMaplikeBinding::MaplikeHelpers::Clear(this, rv);
|
||||
TestInterfaceMaplike_Binding::MaplikeHelpers::Clear(this, rv);
|
||||
}
|
||||
|
||||
bool
|
||||
TestInterfaceMaplike::DeleteInternal(const nsAString& aKey)
|
||||
{
|
||||
ErrorResult rv;
|
||||
return TestInterfaceMaplikeBinding::MaplikeHelpers::Delete(this, aKey, rv);
|
||||
return TestInterfaceMaplike_Binding::MaplikeHelpers::Delete(this, aKey, rv);
|
||||
}
|
||||
|
||||
bool
|
||||
TestInterfaceMaplike::HasInternal(const nsAString& aKey)
|
||||
{
|
||||
ErrorResult rv;
|
||||
return TestInterfaceMaplikeBinding::MaplikeHelpers::Has(this, aKey, rv);
|
||||
return TestInterfaceMaplike_Binding::MaplikeHelpers::Has(this, aKey, rv);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -48,7 +48,7 @@ JSObject*
|
|||
TestInterfaceMaplikeObject::WrapObject(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return TestInterfaceMaplikeObjectBinding::Wrap(aCx, this, aGivenProto);
|
||||
return TestInterfaceMaplikeObject_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsPIDOMWindowInner*
|
||||
|
@ -62,28 +62,28 @@ TestInterfaceMaplikeObject::SetInternal(const nsAString& aKey)
|
|||
{
|
||||
RefPtr<TestInterfaceMaplike> p(new TestInterfaceMaplike(mParent));
|
||||
ErrorResult rv;
|
||||
TestInterfaceMaplikeObjectBinding::MaplikeHelpers::Set(this, aKey, *p, rv);
|
||||
TestInterfaceMaplikeObject_Binding::MaplikeHelpers::Set(this, aKey, *p, rv);
|
||||
}
|
||||
|
||||
void
|
||||
TestInterfaceMaplikeObject::ClearInternal()
|
||||
{
|
||||
ErrorResult rv;
|
||||
TestInterfaceMaplikeObjectBinding::MaplikeHelpers::Clear(this, rv);
|
||||
TestInterfaceMaplikeObject_Binding::MaplikeHelpers::Clear(this, rv);
|
||||
}
|
||||
|
||||
bool
|
||||
TestInterfaceMaplikeObject::DeleteInternal(const nsAString& aKey)
|
||||
{
|
||||
ErrorResult rv;
|
||||
return TestInterfaceMaplikeObjectBinding::MaplikeHelpers::Delete(this, aKey, rv);
|
||||
return TestInterfaceMaplikeObject_Binding::MaplikeHelpers::Delete(this, aKey, rv);
|
||||
}
|
||||
|
||||
bool
|
||||
TestInterfaceMaplikeObject::HasInternal(const nsAString& aKey)
|
||||
{
|
||||
ErrorResult rv;
|
||||
return TestInterfaceMaplikeObjectBinding::MaplikeHelpers::Has(this, aKey, rv);
|
||||
return TestInterfaceMaplikeObject_Binding::MaplikeHelpers::Has(this, aKey, rv);
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
|
|
|
@ -47,7 +47,7 @@ JSObject*
|
|||
TestInterfaceSetlike::WrapObject(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
return TestInterfaceSetlikeBinding::Wrap(aCx, this, aGivenProto);
|
||||
return TestInterfaceSetlike_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
nsPIDOMWindowInner*
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче