RESOLVED FIXED Bug 222291
WebMouseEvent.h should avoid pulling in WebCore headers that know about DOM nodes
https://bugs.webkit.org/show_bug.cgi?id=222291
Summary WebMouseEvent.h should avoid pulling in WebCore headers that know about DOM n...
Wenson Hsieh
Reported 2021-02-22 15:57:58 PST
WebMouseEvent.h includes PointerEvent.h, which then includes Node.h and a host of other DOM-related headers. Given that WebMouseEvent.h is a shared header included by code running in the UI process, we probably shouldn't. ...this also fixes a unified source build error, seen here: https://ews-build.webkit.org/#/builders/49/builds/9134/steps/8/logs/errors, which happens because `WebCore::UIEvent` collides with the globally namespaced `UIEvent` Objective-C class from UIKit.
Attachments
Patch (27.99 KB, patch)
2021-02-22 16:13 PST, Wenson Hsieh
darin: review+
For landing (28.05 KB, patch)
2021-02-22 17:42 PST, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2021-02-22 16:13:50 PST
EWS Watchlist
Comment 2 2021-02-22 16:14:58 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Darin Adler
Comment 3 2021-02-22 17:16:23 PST
Comment on attachment 421259 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=421259&action=review > Source/WebCore/dom/PointerEventTypeNames.h:28 > +namespace WebCore { Since this header uses WTF::String, it should include <wtf/Forward.h>.
Wenson Hsieh
Comment 4 2021-02-22 17:34:29 PST
Comment on attachment 421259 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=421259&action=review >> Source/WebCore/dom/PointerEventTypeNames.h:28 >> +namespace WebCore { > > Since this header uses WTF::String, it should include <wtf/Forward.h>. Fixed, thanks!
Wenson Hsieh
Comment 5 2021-02-22 17:42:14 PST
Created attachment 421274 [details] For landing
EWS
Comment 6 2021-02-22 19:16:37 PST
Committed r273296: <https://commits.webkit.org/r273296> All reviewed patches have been landed. Closing bug and clearing flags on attachment 421274 [details].
Radar WebKit Bug Importer
Comment 7 2021-02-22 19:17:15 PST
Note You need to log in before you can comment on or make changes to this bug.