[Webkit-unassigned] [Bug 124325] Consolidate and expose Frame/Node/Selection screenshot capabilities

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 14 11:07:12 PST 2013


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





--- Comment #16 from Tim Horton <thorton at apple.com>  2013-11-14 11:05:48 PST ---
(From update of attachment 216956)
View in context: https://bugs.webkit.org/attachment.cgi?id=216956&action=review

> Source/WebCore/platform/DragImage.cpp:202
> +    paintingRect.setWidth(paintingRect.width() * deviceScaleFactor);
> +    paintingRect.setHeight(paintingRect.height() * deviceScaleFactor);

paintingRect.scale(deviceScaleFactor);

> Source/WebCore/platform/DragImage.cpp:216
> +DragImageRef createDragImageForNode(Frame& frame, Node* node)

Wonder if there’s not more code that can be factored out of these two.

> Source/WebCore/platform/DragImage.cpp:242
> +    paintingRect.setWidth(paintingRect.width() * deviceScaleFactor);
> +    paintingRect.setHeight(paintingRect.height() * deviceScaleFactor);

paintingRect.scale(deviceScaleFactor);

-- 
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