| 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 m_view->setNodeToDraw(&node); // Enable special sub-tree drawing mode. | 670 m_view->setNodeToDraw(&node); // Enable special sub-tree drawing mode. |
| 671 | 671 |
| 672 // Document::updateLayout may have blown away the original LayoutObject. | 672 // Document::updateLayout may have blown away the original LayoutObject. |
| 673 LayoutObject* renderer = node.renderer(); | 673 LayoutObject* renderer = node.renderer(); |
| 674 if (!renderer) | 674 if (!renderer) |
| 675 return nullptr; | 675 return nullptr; |
| 676 | 676 |
| 677 IntRect rect; | 677 IntRect rect; |
| 678 | 678 |
| 679 return paintIntoDragImage(renderer->displayItemClient(), DisplayItem::ClipNo
deImage, renderer->shouldRespectImageOrientation(), | 679 return paintIntoDragImage(renderer->displayItemClient(), DisplayItem::ClipNo
deImage, renderer->shouldRespectImageOrientation(), |
| 680 pixelSnappedIntRect(renderer->paintingRootRect(rect))); | 680 renderer->paintingRootRect(rect)); |
| 681 } | 681 } |
| 682 | 682 |
| 683 PassOwnPtr<DragImage> LocalFrame::dragImageForSelection() | 683 PassOwnPtr<DragImage> LocalFrame::dragImageForSelection() |
| 684 { | 684 { |
| 685 if (!selection().isRange()) | 685 if (!selection().isRange()) |
| 686 return nullptr; | 686 return nullptr; |
| 687 | 687 |
| 688 const ScopedFramePaintingState state(this, 0); | 688 const ScopedFramePaintingState state(this, 0); |
| 689 m_view->setPaintBehavior(PaintBehaviorSelectionOnly | PaintBehaviorFlattenCo
mpositingLayers); | 689 m_view->setPaintBehavior(PaintBehaviorSelectionOnly | PaintBehaviorFlattenCo
mpositingLayers); |
| 690 m_view->updateLayoutAndStyleForPainting(); | 690 m_view->updateLayoutAndStyleForPainting(); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 // We detach the FrameView's custom scroll bars as early as | 843 // We detach the FrameView's custom scroll bars as early as |
| 844 // possible to prevent m_doc->detach() from messing with the view | 844 // possible to prevent m_doc->detach() from messing with the view |
| 845 // such that its scroll bars won't be torn down. | 845 // such that its scroll bars won't be torn down. |
| 846 // | 846 // |
| 847 // FIXME: We should revisit this. | 847 // FIXME: We should revisit this. |
| 848 if (m_view) | 848 if (m_view) |
| 849 m_view->prepareForDetach(); | 849 m_view->prepareForDetach(); |
| 850 } | 850 } |
| 851 | 851 |
| 852 } // namespace blink | 852 } // namespace blink |
| OLD | NEW |