- Revision
- 95564
- Author
- [email protected]
- Date
- 2011-09-20 13:13:15 -0700 (Tue, 20 Sep 2011)
Log Message
[GTK] requestAnimationFrame support for gtk port
https://bugs.webkit.org/show_bug.cgi?id=66280
Patch by ChangSeok Oh <[email protected]> on 2011-09-20
Reviewed by Martin Robinson.
.:
* configure.ac: Add an option to enable requestAnimationFrame for gtk port.
Source/_javascript_Core:
Let GTK port use REQUEST_ANIMATION_FRAME_TIMER.
* wtf/Platform.h:
Source/WebCore:
Add some files to build-target & activate ENABLE_REQUEST_ANIMATION_FRAME flag
when enabling requestAnimationFrame option.
fast/animation/request-animation-frame-cancel.html
fast/animation/request-animation-frame-cancel2.html
fast/animation/request-animation-frame-display.html
fast/animation/request-animation-frame-during-modal.html
fast/animation/request-animation-frame-timestamps.html
fast/animation/request-animation-frame-within-callback.html
fast/animation/request-animation-frame.html
* GNUmakefile.am:
* GNUmakefile.list.am:
Modified Paths
Diff
Modified: trunk/ChangeLog (95563 => 95564)
--- trunk/ChangeLog 2011-09-20 20:10:56 UTC (rev 95563)
+++ trunk/ChangeLog 2011-09-20 20:13:15 UTC (rev 95564)
@@ -1,3 +1,12 @@
+2011-09-20 ChangSeok Oh <[email protected]>
+
+ [GTK] requestAnimationFrame support for gtk port
+ https://bugs.webkit.org/show_bug.cgi?id=66280
+
+ Reviewed by Martin Robinson.
+
+ * configure.ac: Add an option to enable requestAnimationFrame for gtk port.
+
2011-09-20 Carlos Garcia Campos <[email protected]>
[GTK] Update NEWS and configure.ac for 1.5.90 release
Modified: trunk/Source/_javascript_Core/ChangeLog (95563 => 95564)
--- trunk/Source/_javascript_Core/ChangeLog 2011-09-20 20:10:56 UTC (rev 95563)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-09-20 20:13:15 UTC (rev 95564)
@@ -1,3 +1,14 @@
+2011-09-20 ChangSeok Oh <[email protected]>
+
+ [GTK] requestAnimationFrame support for gtk port
+ https://bugs.webkit.org/show_bug.cgi?id=66280
+
+ Reviewed by Martin Robinson.
+
+ Let GTK port use REQUEST_ANIMATION_FRAME_TIMER.
+
+ * wtf/Platform.h:
+
2011-09-20 Filip Pizlo <[email protected]>
DFG JIT performs too many negative zero checks, and too many
Modified: trunk/Source/_javascript_Core/wtf/Platform.h (95563 => 95564)
--- trunk/Source/_javascript_Core/wtf/Platform.h 2011-09-20 20:10:56 UTC (rev 95563)
+++ trunk/Source/_javascript_Core/wtf/Platform.h 2011-09-20 20:13:15 UTC (rev 95564)
@@ -1116,7 +1116,7 @@
#define WTF_USE_AVFOUNDATION 1
#endif
-#if PLATFORM(MAC)
+#if PLATFORM(MAC) || PLATFORM(GTK)
#define WTF_USE_REQUEST_ANIMATION_FRAME_TIMER 1
#endif
Modified: trunk/Source/WebCore/ChangeLog (95563 => 95564)
--- trunk/Source/WebCore/ChangeLog 2011-09-20 20:10:56 UTC (rev 95563)
+++ trunk/Source/WebCore/ChangeLog 2011-09-20 20:13:15 UTC (rev 95564)
@@ -1,3 +1,24 @@
+2011-09-20 ChangSeok Oh <[email protected]>
+
+ [GTK] requestAnimationFrame support for gtk port
+ https://bugs.webkit.org/show_bug.cgi?id=66280
+
+ Reviewed by Martin Robinson.
+
+ Add some files to build-target & activate ENABLE_REQUEST_ANIMATION_FRAME flag
+ when enabling requestAnimationFrame option.
+
+ fast/animation/request-animation-frame-cancel.html
+ fast/animation/request-animation-frame-cancel2.html
+ fast/animation/request-animation-frame-display.html
+ fast/animation/request-animation-frame-during-modal.html
+ fast/animation/request-animation-frame-timestamps.html
+ fast/animation/request-animation-frame-within-callback.html
+ fast/animation/request-animation-frame.html
+
+ * GNUmakefile.am:
+ * GNUmakefile.list.am:
+
2011-09-20 Aaron Boodman <[email protected]>
Rework script context creation/release notifications
Modified: trunk/Source/WebCore/GNUmakefile.am (95563 => 95564)
--- trunk/Source/WebCore/GNUmakefile.am 2011-09-20 20:10:56 UTC (rev 95563)
+++ trunk/Source/WebCore/GNUmakefile.am 2011-09-20 20:13:15 UTC (rev 95564)
@@ -550,6 +550,14 @@
endif # END ENABLE_ANIMATION_API
# ---
+# RequestAnimationFrame support
+# ---
+if ENABLE_REQUEST_ANIMATION_FRAME
+FEATURE_DEFINES += ENABLE_REQUEST_ANIMATION_FRAME=1
+webcore_cppflags += -DENABLE_REQUEST_ANIMATION_FRAME=1
+endif # END ENABLE_REQUEST_ANIMATION_FRAME
+
+# ---
# 3D canvas (WebGL) support
# ---
if ENABLE_WEBGL
Modified: trunk/Source/WebCore/GNUmakefile.list.am (95563 => 95564)
--- trunk/Source/WebCore/GNUmakefile.list.am 2011-09-20 20:10:56 UTC (rev 95563)
+++ trunk/Source/WebCore/GNUmakefile.list.am 2011-09-20 20:13:15 UTC (rev 95564)
@@ -4853,3 +4853,17 @@
Source/WebCore/loader/archive/mhtml/MHTMLParser.cpp \
Source/WebCore/loader/archive/mhtml/MHTMLParser.h
endif # END ENABLE_MHTML
+
+# ---
+# RequestAnimationFrame support
+# ---
+if ENABLE_REQUEST_ANIMATION_FRAME
+webcore_built_sources += \
+ DerivedSources/WebCore/JSRequestAnimationFrameCallback.cpp \
+ DerivedSources/WebCore/JSRequestAnimationFrameCallback.h
+webcore_sources += \
+ Source/WebCore/bindings/js/JSRequestAnimationFrameCallbackCustom.cpp \
+ Source/WebCore/dom/RequestAnimationFrameCallback.h \
+ Source/WebCore/dom/ScriptedAnimationController.cpp \
+ Source/WebCore/dom/ScriptedAnimationController.h
+endif # END ENABLE_REQUEST_ANIMATION_FRAME
Modified: trunk/configure.ac (95563 => 95564)
--- trunk/configure.ac 2011-09-20 20:10:56 UTC (rev 95563)
+++ trunk/configure.ac 2011-09-20 20:13:15 UTC (rev 95564)
@@ -877,6 +877,14 @@
[], [enable_animation_api="no"])
AC_MSG_RESULT([$enable_animation_api])
+# check whether to enable requestAnimationFrame support
+AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
+AC_ARG_ENABLE(request_animation_frame,
+ AC_HELP_STRING([--enable-request-animation-frame],
+ [enable support for requestAnimationFrame (experimental) [default=no]]),
+ [],[enable_request_animation_frame="no"])
+AC_MSG_RESULT([$enable_request_animation_frame])
+
# check whether to enable touch icon loading
AC_MSG_CHECKING([whether to enable touch icon loading])
AC_ARG_ENABLE(touch_icon_loading,
@@ -1168,6 +1176,7 @@
AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
+AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
@@ -1268,6 +1277,7 @@
XSLT support : $enable_xslt
Spellcheck support : $enable_spellcheck
Animation API : $enable_animation_api
+ RequestAnimationFrame support : $enable_request_animation_frame
Touch Icon Loading support : $enable_touch_icon_loading
Register Protocol Handler support : $enable_register_protocol_handler
WebKit2 support : $enable_webkit2