| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 transform.scale(deviceScaleFactor, deviceScaleFactor); | 633 transform.scale(deviceScaleFactor, deviceScaleFactor); |
| 634 transform.translate(-paintingRect.x(), -paintingRect.y()); | 634 transform.translate(-paintingRect.x(), -paintingRect.y()); |
| 635 TransformRecorder transformRecorder(paintContext, displayItemClient, tra
nsform); | 635 TransformRecorder transformRecorder(paintContext, displayItemClient, tra
nsform); |
| 636 | 636 |
| 637 m_view->paintContents(paintContext, globalPaintFlags, paintingRect); | 637 m_view->paintContents(paintContext, globalPaintFlags, paintingRect); |
| 638 | 638 |
| 639 } | 639 } |
| 640 RefPtr<const SkPicture> recording = pictureBuilder.endRecording(); | 640 RefPtr<const SkPicture> recording = pictureBuilder.endRecording(); |
| 641 RefPtr<SkImage> skImage = adoptRef(SkImage::NewFromPicture(recording.get(), | 641 RefPtr<SkImage> skImage = adoptRef(SkImage::NewFromPicture(recording.get(), |
| 642 SkISize::Make(paintingRect.width(), paintingRect.height()), nullptr, nul
lptr)); | 642 SkISize::Make(paintingRect.width(), paintingRect.height()), nullptr, nul
lptr)); |
| 643 RefPtr<Image> image = StaticBitmapImage::create(skImage.release()); | 643 RefPtr<Image> image = StaticBitmapImage::create(skImage.release(), true); |
| 644 | 644 |
| 645 return DragImage::create(image.get(), shouldRespectImageOrientation, deviceS
caleFactor, | 645 return DragImage::create(image.get(), shouldRespectImageOrientation, deviceS
caleFactor, |
| 646 InterpolationHigh, opacity); | 646 InterpolationHigh, opacity); |
| 647 } | 647 } |
| 648 | 648 |
| 649 PassOwnPtr<DragImage> LocalFrame::nodeImage(Node& node) | 649 PassOwnPtr<DragImage> LocalFrame::nodeImage(Node& node) |
| 650 { | 650 { |
| 651 if (!node.layoutObject()) | 651 if (!node.layoutObject()) |
| 652 return nullptr; | 652 return nullptr; |
| 653 | 653 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 { | 889 { |
| 890 m_frame->disableNavigation(); | 890 m_frame->disableNavigation(); |
| 891 } | 891 } |
| 892 | 892 |
| 893 FrameNavigationDisabler::~FrameNavigationDisabler() | 893 FrameNavigationDisabler::~FrameNavigationDisabler() |
| 894 { | 894 { |
| 895 m_frame->enableNavigation(); | 895 m_frame->enableNavigation(); |
| 896 } | 896 } |
| 897 | 897 |
| 898 } // namespace blink | 898 } // namespace blink |
| OLD | NEW |