mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #1873 - Part 1: Introduce ParentForUndisplayedMap helper method
This introduces the `ParentForUndisplayedMap` helper method to reduce duplication in terms of getting the parent and asserting parent existence. Partially based on parts of https://bugzilla.mozilla.org/show_bug.cgi?id=1341083
This commit is contained in:
parent
5422762839
commit
c5f6e6155b
2 changed files with 17 additions and 6 deletions
|
|
@ -182,6 +182,8 @@ public:
|
|||
void RestoreFrameStateFor(nsIFrame* aFrame,
|
||||
nsILayoutHistoryState* aState);
|
||||
protected:
|
||||
static nsIContent* ParentForUndisplayedMap(const nsIContent* aContent);
|
||||
|
||||
void ClearAllMapsFor(nsIContent* aParentContent);
|
||||
|
||||
static nsStyleContext* GetStyleContextInMap(UndisplayedMap* aMap,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue