Open Bug 1794954 Opened 3 years ago Updated 3 years ago

DOM methods should treat nsAtom as const pointer or reference as far as possible

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: masayuki, Unassigned)

Details

nsAtom::AsStatic() returns const nsStaticAtom*. However, some methods under dom treat it as nsAtom*. Therefore, const_cast<nsAtom*> is required to call such methods with nsStaticAtom*.

I'll post some patches.

Hmm, the patches become too big. I'll work on this when I have spare time and filing bugs for each change.

Assignee: masayuki → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.