No Issue - Modernize nsImageFrame/nsImageMap

Primarily flow control improvements, and removing unused `nsresults`.
This commit is contained in:
Moonchild 2025-04-25 09:11:18 +02:00 committed by roytam1
commit 8db40dbbb5
3 changed files with 37 additions and 60 deletions

View file

@ -37,7 +37,7 @@ class nsImageMap final : public nsStubMutationObserver,
public:
nsImageMap();
nsresult Init(nsImageFrame* aImageFrame, nsIContent* aMap);
void Init(nsImageFrame* aImageFrame, nsIContent* aMap);
/**
* Return the first area element (in content order) for the given aX,aY pixel
@ -86,10 +86,10 @@ protected:
void FreeAreas();
nsresult UpdateAreas();
nsresult SearchForAreas(nsIContent* aParent);
void UpdateAreas();
void SearchForAreas(nsIContent* aParent);
nsresult AddArea(mozilla::dom::HTMLAreaElement* aArea);
void AddArea(mozilla::dom::HTMLAreaElement* aArea);
void MaybeUpdateAreas(nsIContent *aContent);