Closed
Bug 748242
Opened 12 years ago
Closed 3 years ago
Convert attributes to nsIAtom* in editing code
Categories
(Core :: DOM: Editor, enhancement, P5)
Core
DOM: Editor
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ayg, Unassigned)
Details
Random representative example: nsresult nsHTMLCSSUtils::RemoveCSSEquivalentToHTMLStyle(nsIDOMNode * aNode, nsIAtom *aHTMLProperty, const nsAString *aAttribute, const nsAString *aValue, bool aSuppressTransaction) aAttribute here should be nsIAtom*, because there are only a limited set of attributes we care about and we already have them as nsEditProperty members. Of course, there are a zillion methods that use this calling convention, so fixing this would require 1) changing all the method signatures, 2) changing all ->EqualsLiteral() to equality comparisons, 3) (preferably) getting rid of all the now-redundant "aAttribute &&" checks, 4) fixing all callers once you get to the root of whatever calls all this stuff to start with (editor/composer/?), 5) making sure comm-central didn't break. Conceivably this could be done incrementally by overloading methods to accept either, starting with leaf methods like IsCSSEditableProperty. But it might be simplest to just do it all at once. Interested, Ms2ger? :)
Comment 1•3 years ago
|
||
Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
Comment 2•3 years ago
|
||
This was already converted to nsIAtom several years ago (ie. bug 1324996 and etc)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•