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:
Marshall Greenblatt
2012-04-26 14:10:24 +00:00
parent c5e4fef620
commit 4ee46079b6
2 changed files with 24 additions and 0 deletions

View File

@@ -31,6 +31,11 @@ patches = [
'name': 'webcore_cachedresource',
'path': '../third_party/WebKit/Source/WebCore/loader/cache/',
},
{
# http://code.google.com/p/chromium/issues/detail?id=118331
'name': 'webcore_document',
'path': '../third_party/WebKit/Source/WebCore/dom/',
},
{
# http://code.google.com/p/chromiumembedded/issues/detail?id=364
'name': 'spi_webcore_364',

View 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);
}