Changeset 150666 in webkit
- Timestamp:
- May 24, 2013, 4:37:12 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/WebCore.exp.in (modified) (1 diff)
-
WebCore/page/FrameView.cpp (modified) (1 diff)
-
WebCore/page/FrameView.h (modified) (1 diff)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150665 r150666 1 2013-05-24 Tim Horton <timothy_horton@apple.com> 2 3 Animated GIFs don't repaint after TiledCoreAnimationDrawingArea un-suspends painting 4 https://bugs.webkit.org/show_bug.cgi?id=116744 5 <rdar://problem/13973514> 6 7 Reviewed by Simon Fraser. 8 9 * WebCore.exp.in: Export FrameView::resumeAnimatingImages. 10 * page/FrameView.cpp: 11 (WebCore::FrameView::setIsInWindow): 12 (WebCore::FrameView::resumeAnimatingImages): 13 Factor the code to restart animated images out of frameView::setIsInWindow. 14 15 * page/FrameView.h: 16 (FrameView): 17 1 18 2013-05-24 Anders Carlsson <andersca@apple.com> 2 19 -
trunk/Source/WebCore/WebCore.exp.in
r150665 r150666 1154 1154 __ZN7WebCore9FrameView20resetTrackedRepaintsEv 1155 1155 __ZN7WebCore9FrameView21flushDeferredRepaintsEv 1156 __ZN7WebCore9FrameView21resumeAnimatingImagesEv 1156 1157 __ZN7WebCore9FrameView22setBaseBackgroundColorERKNS_5ColorE 1157 1158 __ZN7WebCore9FrameView23updateCanHaveScrollbarsEv -
trunk/Source/WebCore/page/FrameView.cpp
r150656 r150666 1070 1070 renderView->setIsInWindow(isInWindow); 1071 1071 1072 if (isInWindow) { 1073 // Drawing models which cache painted content while out-of-window (WebKit2's composited drawing areas, etc.) 1074 // require that we repaint animated images to kickstart the animation loop. 1075 1076 CachedImage::resumeAnimatingImagesForLoader(frame()->document()->cachedResourceLoader()); 1077 } 1072 if (isInWindow) 1073 resumeAnimatingImages(); 1074 } 1075 1076 void FrameView::resumeAnimatingImages() 1077 { 1078 // Drawing models which cache painted content while out-of-window (WebKit2's composited drawing areas, etc.) 1079 // require that we repaint animated images to kickstart the animation loop. 1080 1081 CachedImage::resumeAnimatingImagesForLoader(frame()->document()->cachedResourceLoader()); 1078 1082 } 1079 1083 -
trunk/Source/WebCore/page/FrameView.h
r150627 r150666 431 431 void setVisualUpdatesAllowedByClient(bool); 432 432 433 void resumeAnimatingImages(); 434 433 435 protected: 434 436 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect); -
trunk/Source/WebKit2/ChangeLog
r150663 r150666 1 2013-05-24 Tim Horton <timothy_horton@apple.com> 2 3 Animated GIFs don't repaint after TiledCoreAnimationDrawingArea un-suspends painting 4 https://bugs.webkit.org/show_bug.cgi?id=116744 5 <rdar://problem/13973514> 6 7 Reviewed by Simon Fraser. 8 9 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: 10 (WebKit::TiledCoreAnimationDrawingArea::resumePainting): 11 Force WebCore to repaint animated images when painting is resumed. 12 1 13 2013-05-24 Christophe Dumez <ch.dumez@sisa.samsung.com> 2 14 -
trunk/Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm
r150093 r150666 386 386 [[NSNotificationCenter defaultCenter] postNotificationName:@"NSCAViewRenderDidResumeNotification" object:nil userInfo:[NSDictionary dictionaryWithObject:m_rootLayer.get() forKey:@"layer"]]; 387 387 388 if (m_webPage->windowIsVisible()) 388 if (m_webPage->windowIsVisible()) { 389 389 m_webPage->corePage()->resumeScriptedAnimations(); 390 391 Frame* frame = m_webPage->corePage()->mainFrame(); 392 if (!frame) 393 return; 394 395 FrameView* frameView = frame->view(); 396 if (!frameView) 397 return; 398 399 frameView->resumeAnimatingImages(); 400 } 390 401 } 391 402
Note:
See TracChangeset
for help on using the changeset viewer.