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..9ea7702804c499baded1b4397a6fde351d8332de 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -213,10 +213,16 @@ 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(); |
+ } |
+ LOG(ERROR) << "layer: " << layer->layoutObject().debugName(); |
wkorman
2017/03/31 21:08:18
remove
chrishtr
2017/03/31 21:18:00
Fixed.
|
return createDragImage( |
*m_localFrame, 1.0f, |
LayoutObject::shouldRespectImageOrientation(draggedLayoutObject), |
- boundingBox, builder.endRecording()); |
+ boundingBox, builder.endRecording(borderBoxProperties)); |
} |
private: |