Closed Bug 1518384 Opened 5 years ago Closed 5 years ago

Some files depend on |using namespace mozilla| and |using namespace dom| in other cpp file to use Document

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox-esr60 --- unaffected
firefox64 --- unaffected
firefox65 --- unaffected
firefox66 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

(Keywords: regression)

Attachments

(1 file)

When I'm working on renaming a find in dom/base, I hit this bug.

s/find/file

After landing bug 1517241, some lines in Document.cpp and Element.cpp depend on
|using namespace mozilla| and |using namespace mozilla::dom| of *different*
cpp files.  Therefore, when you rename some cpp files in dom/base, you'll
hit compile error.

This patch fixes the dependency with moving some classes into mozilla namespace
and adding |mozilla::| or |dom::| to a couple of lines.
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/54f18c480711
Fix some lines which depend on |using namespace mozilla| and |using namespace mozilla::dom| in Document.cpp and Element.cpp r=smaug

Thanks for fixing this Masayuki, and sorry :(

Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66

(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)

Thanks for fixing this Masayuki, and sorry :(

No problem. But I think that we should stop using |using namespace foo| even in cpp files if they are unified. I usually hit this kind of bugs when I try to rename cpp files.

(In reply to Masayuki Nakano [:masayuki] (JST, +0900)(sick) from comment #7)

No problem. But I think that we should stop using |using namespace foo| even in cpp files if they are unified. I usually hit this kind of bugs when I try to rename cpp files.

Yeah, or at least test non-unified builds in automation? That might be easier, though I recall that being frowned upon a few times.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: