Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2784373004: [SPv2] Replay DragImages into PropertyTreeState of the enclosing stacking context (Closed)
Patch Set: none Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698