RESOLVED FIXED Bug 192352
Remove using namespace WebCore and WebKit under WebKit/Shared/API
https://bugs.webkit.org/show_bug.cgi?id=192352
Summary Remove using namespace WebCore and WebKit under WebKit/Shared/API
Fujii Hironori
Reported 2018-12-03 21:46:59 PST
Remove using namespace WebCore and WebKit under WebKit/Shared/API Bug 191995 – Remove "using namespace WebCore" under Source/WebKit/WebProcess/InjectedBundle/API Bug 192301 – Remove "using namespace WebKit" under Source/WebKit/WebProcess/InjectedBundle/API
Attachments
Patch (53.34 KB, patch)
2018-12-03 21:52 PST, Fujii Hironori
no flags
Patch (59.47 KB, patch)
2018-12-03 21:59 PST, Fujii Hironori
no flags
Patch (59.46 KB, patch)
2018-12-03 22:14 PST, Fujii Hironori
no flags
Patch (59.39 KB, patch)
2018-12-03 22:40 PST, Fujii Hironori
no flags
Patch (59.41 KB, patch)
2018-12-03 23:27 PST, Fujii Hironori
no flags
Patch (58.22 KB, patch)
2018-12-04 18:17 PST, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2018-12-03 21:52:22 PST
Fujii Hironori
Comment 2 2018-12-03 21:59:59 PST
Fujii Hironori
Comment 3 2018-12-03 22:14:34 PST
Fujii Hironori
Comment 4 2018-12-03 22:40:21 PST
Fujii Hironori
Comment 5 2018-12-03 23:27:11 PST
Alex Christensen
Comment 6 2018-12-04 08:21:55 PST
Comment on attachment 356473 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356473&action=review > Source/WebKit/Shared/API/APIURLRequest.cpp:34 > -using namespace WebCore; > -using namespace WebKit; > - > namespace API { > > -URLRequest::URLRequest(const ResourceRequest& request) > +URLRequest::URLRequest(const WebCore::ResourceRequest& request) If you just move the "using namespace X;" to after the "namespace Y {" then the "using" has that scope, doesn't mess with unified builds, and requires less invasive changes to the existing code.
Fujii Hironori
Comment 7 2018-12-04 17:34:31 PST
Comment on attachment 356473 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356473&action=review >> Source/WebKit/Shared/API/APIURLRequest.cpp:34 >> +URLRequest::URLRequest(const WebCore::ResourceRequest& request) > > If you just move the "using namespace X;" to after the "namespace Y {" then the "using" has that scope, doesn't mess with unified builds, and requires less invasive changes to the existing code. Oh, that's right. Thank you very much for catching.
Fujii Hironori
Comment 8 2018-12-04 18:17:33 PST
Fujii Hironori
Comment 9 2018-12-04 22:53:17 PST
Comment on attachment 356566 [details] Patch Clearing flags on attachment: 356566 Committed r238887: <https://trac.webkit.org/changeset/238887>
Fujii Hironori
Comment 10 2018-12-04 22:53:20 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 2018-12-04 22:54:34 PST
Note You need to log in before you can comment on or make changes to this bug.