Changeset 40707 in webkit
- Timestamp:
- Feb 5, 2009 9:37:07 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r40557 r40707 1 2009-02-05 Simon Fraser <simon.fraser@apple.com> 2 3 Reviewed by Dan Bernstein 4 5 https://bugs.webkit.org/show_bug.cgi?id=23362 6 7 If the WebHTMLView uses accelerated compositing, we need for force 8 the on-screen capture path and also force animations to start with -display 9 since the DRT window has autodisplay disabled. 10 11 * DumpRenderTree/mac/PixelDumpSupportMac.mm: 12 (createBitmapContextFromWebView): 13 1 14 2009-02-03 miggilin <mr.diggilin@gmail.com> 2 15 -
trunk/WebKitTools/DumpRenderTree/mac/PixelDumpSupportMac.mm
r40075 r40707 44 44 #import <WebKit/WebDocumentPrivate.h> 45 45 #import <WebKit/WebKit.h> 46 #import <WebKit/WebHTMLViewPrivate.h> 46 47 47 48 // To ensure pixel tests consistency, we need to always render in the same colorspace. … … 103 104 PassRefPtr<BitmapContext> createBitmapContextFromWebView(bool onscreen, bool incrementalRepaint, bool sweepHorizontally, bool drawSelectionRect) 104 105 { 106 // If the WebHTMLView uses accelerated compositing, we need for force the on-screen capture path 107 // and also force Core Animation to start its animations with -display since the DRT window has autodisplay disabled. 108 NSView* documentView = [[mainFrame frameView] documentView]; 109 if ([documentView isKindOfClass:[WebHTMLView class]]) { 110 WebHTMLView* htmlView = (WebHTMLView*)documentView; 111 if ([htmlView respondsToSelector:@selector(_isUsingAcceleratedCompositing)] && [htmlView _isUsingAcceleratedCompositing]) { 112 [[htmlView window] display]; 113 onscreen = YES; 114 } 115 } 116 105 117 WebView* view = [mainFrame webView]; 106 118 NSSize webViewSize = [view frame].size;
Note: See TracChangeset
for help on using the changeset viewer.