mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 11:27:32 +09:00
Bug 1422197 - Add fast path to get DocGroup in binding code for [CEReactions]
Tag #1375
This commit is contained in:
parent
fc8fcfc039
commit
ca09afd0b0
30 changed files with 206 additions and 44 deletions
|
|
@ -1284,6 +1284,11 @@ txMozillaXSLTProcessor::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenP
|
|||
return XSLTProcessorBinding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
DocGroup*
|
||||
txMozillaXSLTProcessor::GetDocGroup() const
|
||||
{
|
||||
return mStylesheetDocument ? mStylesheetDocument->GetDocGroup() : nullptr;
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<txMozillaXSLTProcessor>
|
||||
txMozillaXSLTProcessor::Constructor(const GlobalObject& aGlobal,
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class txIGlobalParameter;
|
|||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
class DocGroup;
|
||||
class Document;
|
||||
class DocumentFragment;
|
||||
class GlobalObject;
|
||||
|
|
@ -103,6 +104,8 @@ public:
|
|||
return mOwner;
|
||||
}
|
||||
|
||||
mozilla::dom::DocGroup* GetDocGroup() const;
|
||||
|
||||
static already_AddRefed<txMozillaXSLTProcessor>
|
||||
Constructor(const mozilla::dom::GlobalObject& aGlobal,
|
||||
mozilla::ErrorResult& aRv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue