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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2782343002: Store local border box property cache outside ObjectPaintProperties (Closed)
Patch Set: Rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); 216 PropertyTreeState borderBoxProperties = PropertyTreeState::root();
217 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 217 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
218 borderBoxProperties = 218 borderBoxProperties = *layer->layoutObject().localBorderBoxProperties();
219 *layer->layoutObject().paintProperties()->localBorderBoxProperties();
220 } 219 }
221 return createDragImage( 220 return createDragImage(
222 *m_localFrame, 1.0f, 221 *m_localFrame, 1.0f,
223 LayoutObject::shouldRespectImageOrientation(draggedLayoutObject), 222 LayoutObject::shouldRespectImageOrientation(draggedLayoutObject),
224 boundingBox, builder.endRecording(borderBoxProperties)); 223 boundingBox, builder.endRecording(borderBoxProperties));
225 } 224 }
226 225
227 private: 226 private:
228 const Member<const LocalFrame> m_localFrame; 227 const Member<const LocalFrame> m_localFrame;
229 const Member<Node> m_node; 228 const Member<Node> m_node;
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 927 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
929 m_frame->client()->frameBlameContext()->Enter(); 928 m_frame->client()->frameBlameContext()->Enter();
930 } 929 }
931 930
932 ScopedFrameBlamer::~ScopedFrameBlamer() { 931 ScopedFrameBlamer::~ScopedFrameBlamer() {
933 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 932 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
934 m_frame->client()->frameBlameContext()->Leave(); 933 m_frame->client()->frameBlameContext()->Leave();
935 } 934 }
936 935
937 } // namespace blink 936 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698