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:
@@ -31,6 +31,11 @@ patches = [
|
|||||||
'name': 'webcore_cachedresource',
|
'name': 'webcore_cachedresource',
|
||||||
'path': '../third_party/WebKit/Source/WebCore/loader/cache/',
|
'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
|
# http://code.google.com/p/chromiumembedded/issues/detail?id=364
|
||||||
'name': 'spi_webcore_364',
|
'name': 'spi_webcore_364',
|
||||||
|
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