| 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 | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 9 * rights reserved. | 9 * rights reserved. |
| 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 PaintLayerPaintingInfo paintingInfo(layer, LayoutRect(boundingBox), | 208 PaintLayerPaintingInfo paintingInfo(layer, LayoutRect(boundingBox), |
| 209 GlobalPaintFlattenCompositingLayers, | 209 GlobalPaintFlattenCompositingLayers, |
| 210 LayoutSize()); | 210 LayoutSize()); |
| 211 PaintLayerFlags flags = PaintLayerHaveTransparency | | 211 PaintLayerFlags flags = PaintLayerHaveTransparency | |
| 212 PaintLayerAppliedTransform | | 212 PaintLayerAppliedTransform | |
| 213 PaintLayerUncachedClipRects; | 213 PaintLayerUncachedClipRects; |
| 214 PaintRecordBuilder builder(deviceSpaceBounds(boundingBox, *m_localFrame)); | 214 PaintRecordBuilder builder(deviceSpaceBounds(boundingBox, *m_localFrame)); |
| 215 PaintLayerPainter(*layer).paint(builder.context(), paintingInfo, flags); | 215 PaintLayerPainter(*layer).paint(builder.context(), paintingInfo, flags); |
| 216 PropertyTreeState borderBoxProperties = PropertyTreeState::root(); | 216 PropertyTreeState borderBoxProperties = PropertyTreeState::root(); |
| 217 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { | 217 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| 218 borderBoxProperties = | 218 borderBoxProperties = *layer->layoutObject().localBorderBoxProperties(); |
| 219 *layer->layoutObject().paintProperties()->localBorderBoxProperties(); | |
| 220 } | 219 } |
| 221 return createDragImage( | 220 return createDragImage( |
| 222 *m_localFrame, 1.0f, | 221 *m_localFrame, 1.0f, |
| 223 LayoutObject::shouldRespectImageOrientation(draggedLayoutObject), | 222 LayoutObject::shouldRespectImageOrientation(draggedLayoutObject), |
| 224 boundingBox, builder.endRecording(borderBoxProperties)); | 223 boundingBox, builder.endRecording(borderBoxProperties)); |
| 225 } | 224 } |
| 226 | 225 |
| 227 private: | 226 private: |
| 228 const Member<const LocalFrame> m_localFrame; | 227 const Member<const LocalFrame> m_localFrame; |
| 229 const Member<Node> m_node; | 228 const Member<Node> m_node; |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 927 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 929 m_frame->client()->frameBlameContext()->Enter(); | 928 m_frame->client()->frameBlameContext()->Enter(); |
| 930 } | 929 } |
| 931 | 930 |
| 932 ScopedFrameBlamer::~ScopedFrameBlamer() { | 931 ScopedFrameBlamer::~ScopedFrameBlamer() { |
| 933 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 932 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 934 m_frame->client()->frameBlameContext()->Leave(); | 933 m_frame->client()->frameBlameContext()->Leave(); |
| 935 } | 934 } |
| 936 | 935 |
| 937 } // namespace blink | 936 } // namespace blink |
| OLD | NEW |