mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add patch to fix crash in WebCore::Document::webkitRequestAnimationFrame.
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/963@606 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
19
patch/patches/webcore_document.patch
Normal file
19
patch/patches/webcore_document.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
Index: Document.cpp
|
||||
===================================================================
|
||||
--- Document.cpp (revision 102901)
|
||||
+++ Document.cpp (working copy)
|
||||
@@ -5079,8 +5079,13 @@
|
||||
#if ENABLE(REQUEST_ANIMATION_FRAME)
|
||||
int Document::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback, Element* animationElement)
|
||||
{
|
||||
- if (!m_scriptedAnimationController)
|
||||
+ if (!m_scriptedAnimationController) {
|
||||
+#if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
|
||||
m_scriptedAnimationController = ScriptedAnimationController::create(this, page()->displayID());
|
||||
+#else
|
||||
+ m_scriptedAnimationController = ScriptedAnimationController::create(this, 0);
|
||||
+#endif
|
||||
+ }
|
||||
|
||||
return m_scriptedAnimationController->registerCallback(callback, animationElement);
|
||||
}
|
Reference in New Issue
Block a user