Summary: | Make touch event support a RuntimeEnabledFeature | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Garret Kelly <gdk> | ||||||||||
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | commit-queue, dglazkov, fishd, gustavo, ossy, webkit.review.bot, xan.lopez | ||||||||||
Priority: | P2 | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | All | ||||||||||||
Bug Depends on: | 38135 | ||||||||||||
Bug Blocks: | 37486 | ||||||||||||
Attachments: |
|
Description
Garret Kelly
2010-04-12 21:20:07 PDT
Created attachment 53220 [details]
Initial patch
Attachment 53220 [details] did not build on gtk: Build output: http://webkit-commit-queue.appspot.com/results/1669314 Comment on attachment 53220 [details]
Initial patch
Why is the default state enabled and not disabled? It looks like the qt/gtk bots are not happy.
The default state is enabled to keep the Chromium build bots happy (but will be changed to disabled in a future patch that adds the enable to DRT for Chromium). The feature's not even enabled on Gtk, but both bots are failing because their include paths don't have WebCore/bindings/generic in them. Comment on attachment 53220 [details]
Initial patch
OK. Looks like this might break Qt/Gtk though so cq-
Created attachment 54059 [details]
Fix build issues in initial patch
Created attachment 54075 [details]
Qt Fix
Comment on attachment 54075 [details]
Qt Fix
Please make sure this works on Qt before landing.
I tested the patch manually, but unfortunately I got a link-time error: obj/debug/Document.o: In function `WebCore::RuntimeEnabledFeatures::touchEnabled()': ../WebCore/bindings/generic/RuntimeEnabledFeatures.h:98: undefined reference to `WebCore::RuntimeEnabledFeatures::isTouchEnabled' collect2: ld returned 1 exit status make[1]: *** [../lib/libQtWebKit.so.4.6.0] Error 1 The root of the problem is that the initialization of RuntimeEnabledFeatures::isTouchEnabled (static member) can be found in WebCore/bindings/generic/RuntimeEnabledFeatures.cpp, but this file isn't builded for Qt port. Adding RuntimeEnabledFeatures.cpp wouldn't solve the problem, because of the following error: ../../../WebCore/bindings/generic/RuntimeEnabledFeatures.cpp: In static member function 'static bool WebCore::RuntimeEnabledFeatures::webSocketEnabled()': ../../../WebCore/bindings/generic/RuntimeEnabledFeatures.cpp:90: error: 'isAvailable' is not a member of 'WebCore::WebSocket' WebSocket::isAvailable() is implemented in WebCore/websockets/WebSocket.cpp guarded by #if USE(V8). Comment on attachment 54075 [details] Qt Fix r- -ed because this patch would brake Qt build. See my comment #9. Created attachment 54416 [details]
Remove platform entaglement
Comment on attachment 54416 [details] Remove platform entaglement Clearing flags on attachment: 54416 Committed r58363: <http://trac.webkit.org/changeset/58363> All reviewed patches have been landed. Closing bug. |