Changeset 40707 in webkit


Ignore:
Timestamp:
Feb 5, 2009 9:37:07 PM (15 years ago)
Author:
Simon Fraser
Message:

2009-02-05 Simon Fraser <Simon Fraser>

Reviewed by Dan Bernstein

https://bugs.webkit.org/show_bug.cgi?id=23362

If the WebHTMLView uses accelerated compositing, we need for force
the on-screen capture path and also force animations to start with -display
since the DRT window has autodisplay disabled.

  • DumpRenderTree/mac/PixelDumpSupportMac.mm: (createBitmapContextFromWebView):
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r40557 r40707  
     12009-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
    1142009-02-03  miggilin  <mr.diggilin@gmail.com>
    215
  • trunk/WebKitTools/DumpRenderTree/mac/PixelDumpSupportMac.mm

    r40075 r40707  
    4444#import <WebKit/WebDocumentPrivate.h>
    4545#import <WebKit/WebKit.h>
     46#import <WebKit/WebHTMLViewPrivate.h>
    4647
    4748// To ensure pixel tests consistency, we need to always render in the same colorspace.
     
    103104PassRefPtr<BitmapContext> createBitmapContextFromWebView(bool onscreen, bool incrementalRepaint, bool sweepHorizontally, bool drawSelectionRect)
    104105{
     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
    105117    WebView* view = [mainFrame webView];
    106118    NSSize webViewSize = [view frame].size;
Note: See TracChangeset for help on using the changeset viewer.