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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698