Make iOS WebKit build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS are disabled.
Created attachment 237573 [details] Patch
Created attachment 237576 [details] Patch Export symbol EventHandler::handleTouchEvent when building with ENABLE(TOUCH_EVENTS).
Comment on attachment 237576 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=237576&action=review > Source/WebCore/bindings/js/JSDocumentCustom.cpp:38 > +#if ENABLE(TOUCH_EVENTS) > #include "JSTouch.h" > #include "JSTouchList.h" > +#endif We usually separate the conditional includes from the unconditional ones. > Source/WebCore/platform/ios/ScrollAnimatorIOS.mm:33 > +#if ENABLE(TOUCH_EVENTS) > #include "PlatformTouchEventIOS.h" > +#endif Ditto. > Source/WebCore/rendering/RenderLayer.cpp:183 > +#endif > +#if ENABLE(IOS_TOUCH_EVENTS) > , m_registeredAsTouchEventListenerForScrolling(false) > +#endif > +#if PLATFORM(IOS) I would just nest the ENABLE(IOS_TOUCH_EVENTS) inside the PLATFORM(IOS) block, which would make this simpler. > Source/WebKit/mac/MigrateHeaders.make:239 > +ifeq ($(findstring ENABLE_IOS_TOUCH_EVENTS, $(FEATURE_DEFINES)), ENABLE_IOS_TOUCH_EVENTS) > +all : \ > + $(PRIVATE_HEADERS_DIR)/WebEventRegion.h > +endif > + You should remove line 219.
Comment on attachment 237576 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=237576&action=review >> Source/WebCore/bindings/js/JSDocumentCustom.cpp:38 >> +#endif > > We usually separate the conditional includes from the unconditional ones. Will move conditional includes for ENABLE(TOUCH_EVENTS) and ENABLE(WEBGL) after the list of unconditional includes. >> Source/WebCore/platform/ios/ScrollAnimatorIOS.mm:33 >> +#endif > > Ditto. Will move this conditional include after the list of unconditional includes. >> Source/WebCore/rendering/RenderLayer.cpp:183 >> +#if PLATFORM(IOS) > > I would just nest the ENABLE(IOS_TOUCH_EVENTS) inside the PLATFORM(IOS) block, which would make this simpler. Will nest ENABLE(IOS_TOUCH_EVENTS) inside the PLATFORM(IOS) block here and in file RenderLayer.h. >> Source/WebKit/mac/MigrateHeaders.make:239 >> + > > You should remove line 219. Oops! Will remove.
Committed r173258: <http://trac.webkit.org/changeset/173258>
Committed iOS build fix in <http://trac.webkit.org/changeset/173292>.