[Webkit-unassigned] [Bug 29543] New: Want ability to draw DOMNode objects into a standard graphics context

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 21 05:19:26 PDT 2009


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

           Summary: Want ability to draw DOMNode objects into a standard
                    graphics context
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cocoadev at mikeabdullah.net


In our app, we are allowing the user to drag and drop arbitrary portions of the
WebView in a similar fashion to how one can already drag images out of a
WebView. So to do that, we need to capture a portion of the rendered WebView's
content into an NSImage and feed it to the standard drag and drop APIs. The
major downside of this is that it captures everything making up the webview,
including any CSS backgrounds. Really what I want to capture is the drawing for
a DOMNode and all its descendants. So ideally, we could see a method like:

@interface DOMNode (WebKitAdditions)
- (void)drawWithFraction:(CGFloat)alpha;
@end

This would draw the node and all its descendants into the current graphics
context exactly as they appear onscreen, minus and drawing that would normally
be associated with other nodes.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list