Closed
Bug 1400460
Opened 7 years ago
Closed 7 years ago
Rename nsIAtom as nsAtom
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(8 files)
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
(deleted),
text/x-review-board-request
|
froydnj
:
review+
hiro
:
review+
|
Details |
Once nsIAtom is devirtualized (bug 1400459) it should be renamed as nsAtom. This will be a large but mechanical change.
Assignee | ||
Updated•7 years ago
|
status-firefox57:
affected → ---
Comment 1•7 years ago
|
||
This is awesome, fwiw.
Curious question, why nsAtom and not mozilla::Atom or something like that?
Assignee | ||
Comment 2•7 years ago
|
||
> Curious question, why nsAtom and not mozilla::Atom or something like that?
There are 16,000+ occurrences of "nsIAtom" in the code. Changing it to nsAtom can be done with global search-and-replace. Changing it to mozilla::Atom is harder because you sometimes need "mozilla::Atom" and sometimes need "Atom". Also, "mozilla::Atom" is longer and can mess up formatting by creating overly long lines.
If someone wants to volunteer to convert it to mozilla::Atom in a way that keeps formatting nice, it's fine by me :) Otherwise, I will take the easy route and just make it nsAtom.
Assignee | ||
Comment 3•7 years ago
|
||
I will fold all the patches together before landing, but they're separate for
now to ease reviewing. The ones for .cpp, .h, .mm, and .rs files were done with
automated search-and-replace.
Attachment #8914220 -
Flags: review?(nfroyd)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•7 years ago
|
||
Attachment #8914221 -
Flags: review?(nfroyd)
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #8914222 -
Flags: review?(nfroyd)
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8914223 -
Flags: review?(nfroyd)
Assignee | ||
Comment 7•7 years ago
|
||
Attachment #8914224 -
Flags: review?(nfroyd)
Assignee | ||
Comment 8•7 years ago
|
||
Attachment #8914225 -
Flags: review?(nfroyd)
Assignee | ||
Comment 9•7 years ago
|
||
Attachment #8914226 -
Flags: review?(nfroyd)
Comment 10•7 years ago
|
||
Comment on attachment 8914220 [details] [diff] [review]
Rename nsIAtom as nsAtom
Review of attachment 8914220 [details] [diff] [review]:
-----------------------------------------------------------------
Yay!
Attachment #8914220 -
Flags: review?(nfroyd) → review+
Comment 11•7 years ago
|
||
Comment on attachment 8914221 [details] [diff] [review]
*.js, *.py, *.toml, *dbinit
Review of attachment 8914221 [details] [diff] [review]:
-----------------------------------------------------------------
::: .gdbinit
@@ +85,5 @@
> pu $str.mData $str.mLength
> end
> end
>
> +# Define a "pa" command to display the string value for an nsAtom
I commend your thoroughness.
Attachment #8914221 -
Flags: review?(nfroyd) → review+
Updated•7 years ago
|
Attachment #8914222 -
Flags: review?(nfroyd) → review+
Updated•7 years ago
|
Attachment #8914223 -
Flags: review?(nfroyd) → review+
Updated•7 years ago
|
Attachment #8914225 -
Flags: review?(nfroyd) → review+
Updated•7 years ago
|
Attachment #8914224 -
Flags: review?(nfroyd) → review+
Updated•7 years ago
|
Attachment #8914226 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 12•7 years ago
|
||
> I commend your thoroughness.
Thank you. I harnessed the power of rgrep!
There is a single nsIAtom reference left in the tree:
http://searchfox.org/mozilla-central/rev/298033405057ca7aa5099153797467eceeaa08b5/third_party/python/lldbutils/README.txt#163
Because it's in third_party/ I'm not sure how to update it, but it's just a comment so I haven't bothered investigating further.
Comment hidden (mozreview-request) |
Comment 14•7 years ago
|
||
mozreview-review |
Comment on attachment 8916454 [details]
Bug 1400460 - Rename nsIAtom as nsAtom. .
https://reviewboard.mozilla.org/r/187568/#review192566
Attachment #8916454 -
Flags: review+
Comment 15•7 years ago
|
||
Pushed by nnethercote@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/67a8e1232456
Rename nsIAtom as nsAtom. r=hiro.
Comment 16•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment 17•7 years ago
|
||
mozreview-review |
Comment on attachment 8916454 [details]
Bug 1400460 - Rename nsIAtom as nsAtom. .
https://reviewboard.mozilla.org/r/187568/#review192776
I guess I should r+ this even though it's already landed?
Attachment #8916454 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 18•7 years ago
|
||
> I guess I should r+ this even though it's already landed?
Sorry, autoland isn't very flexible :/
Comment 19•7 years ago
|
||
So the patches modified autogenerated files, like nsHtml5Tokenizer.cpp without fixing the code which autogenerates the code.
https://searchfox.org/mozilla-central/rev/9bab9dc5a9472e3c163ab279847d2249322c206e/parser/html/nsHtml5Tokenizer.cpp#27,33
https://hg.mozilla.org/mozilla-central/diff/67a8e1232456/parser/html/nsHtml5Tokenizer.cpp
Assignee | ||
Comment 20•7 years ago
|
||
> So the patches modified autogenerated files, like nsHtml5Tokenizer.cpp
> without fixing the code which autogenerates the code.
Is that code in a different repository?
Flags: needinfo?(bugs)
Comment 21•7 years ago
|
||
hsivonen would know the setup the best, but yes
https://hg.mozilla.org/projects/htmlparser
You may want to read also https://searchfox.org/mozilla-central/source/parser/html/java/README.txt
Flags: needinfo?(bugs)
Comment 22•7 years ago
|
||
Bug 1400460 renamed nsIAtom to nsAtom in the generated parser code (and reformatted it) without updating the Java translator. I updated the Java translator in bug 1424548.
Assignee | ||
Comment 23•7 years ago
|
||
Thank you, cpeterson!
You need to log in
before you can comment on or make changes to this bug.
Description
•