mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +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
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
class DocGroup;
|
||||
class Element;
|
||||
} // namespace dom
|
||||
struct ComputedGridTrackInfo;
|
||||
|
|
@ -84,6 +85,11 @@ public:
|
|||
return mElement;
|
||||
}
|
||||
|
||||
virtual mozilla::dom::DocGroup* GetDocGroup() const override
|
||||
{
|
||||
return mElement ? mElement->GetDocGroup() : nullptr;
|
||||
}
|
||||
|
||||
static already_AddRefed<nsStyleContext>
|
||||
GetStyleContextForElement(mozilla::dom::Element* aElement, nsIAtom* aPseudo,
|
||||
nsIPresShell* aPresShell,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue