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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 .absoluteToLocalQuad(FloatQuad(absoluteBoundingBox), UseTransforms) | 206 .absoluteToLocalQuad(FloatQuad(absoluteBoundingBox), UseTransforms) |
207 .boundingBox(); | 207 .boundingBox(); |
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(); |
| 217 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
| 218 borderBoxProperties = |
| 219 *layer->layoutObject().paintProperties()->localBorderBoxProperties(); |
| 220 } |
216 return createDragImage( | 221 return createDragImage( |
217 *m_localFrame, 1.0f, | 222 *m_localFrame, 1.0f, |
218 LayoutObject::shouldRespectImageOrientation(draggedLayoutObject), | 223 LayoutObject::shouldRespectImageOrientation(draggedLayoutObject), |
219 boundingBox, builder.endRecording()); | 224 boundingBox, builder.endRecording(borderBoxProperties)); |
220 } | 225 } |
221 | 226 |
222 private: | 227 private: |
223 const Member<const LocalFrame> m_localFrame; | 228 const Member<const LocalFrame> m_localFrame; |
224 const Member<Node> m_node; | 229 const Member<Node> m_node; |
225 #if DCHECK_IS_ON() | 230 #if DCHECK_IS_ON() |
226 const uint64_t m_domTreeVersion; | 231 const uint64_t m_domTreeVersion; |
227 #endif | 232 #endif |
228 }; | 233 }; |
229 | 234 |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 928 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
924 m_frame->client()->frameBlameContext()->Enter(); | 929 m_frame->client()->frameBlameContext()->Enter(); |
925 } | 930 } |
926 | 931 |
927 ScopedFrameBlamer::~ScopedFrameBlamer() { | 932 ScopedFrameBlamer::~ScopedFrameBlamer() { |
928 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 933 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
929 m_frame->client()->frameBlameContext()->Leave(); | 934 m_frame->client()->frameBlameContext()->Leave(); |
930 } | 935 } |
931 | 936 |
932 } // namespace blink | 937 } // namespace blink |
OLD | NEW |