Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
index e9e50a65b9aadbcc403d5d7ad2a54be429e7b534..6e81bf8573e12c612a55e26563353c13262697ce 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -213,10 +213,15 @@ class DraggedNodeImageBuilder { |
PaintLayerUncachedClipRects; |
PaintRecordBuilder builder(deviceSpaceBounds(boundingBox, *m_localFrame)); |
PaintLayerPainter(*layer).paint(builder.context(), paintingInfo, flags); |
+ PropertyTreeState borderBoxProperties = PropertyTreeState::root(); |
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
+ borderBoxProperties = |
+ *layer->layoutObject().paintProperties()->localBorderBoxProperties(); |
+ } |
return createDragImage( |
*m_localFrame, 1.0f, |
LayoutObject::shouldRespectImageOrientation(draggedLayoutObject), |
- boundingBox, builder.endRecording()); |
+ boundingBox, builder.endRecording(borderBoxProperties)); |
} |
private: |