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

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..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:

Powered by Google App Engine
This is Rietveld 408576698