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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp

Issue 1327563003: Don't cache subsequence whose layer is not fully contained by repaint rect (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 break; 122 break;
123 } 123 }
124 newStyle->setTransform(transform); 124 newStyle->setTransform(transform);
125 125
126 // Map in our mask. 126 // Map in our mask.
127 newStyle->setMaskBoxImage(box().style()->boxReflect()->mask()); 127 newStyle->setMaskBoxImage(box().style()->boxReflect()->mask());
128 128
129 m_reflection->setStyle(newStyle.release()); 129 m_reflection->setStyle(newStyle.release());
130 } 130 }
131 131
132 void DeprecatedPaintLayerReflectionInfo::paint(GraphicsContext* context, const D eprecatedPaintLayerPaintingInfo& paintingInfo, PaintLayerFlags flags) 132 DeprecatedPaintLayerPainter::PaintResult DeprecatedPaintLayerReflectionInfo::pai nt(GraphicsContext* context, const DeprecatedPaintLayerPaintingInfo& paintingInf o, PaintLayerFlags flags)
133 { 133 {
134 if (m_isPaintingInsideReflection) 134 if (m_isPaintingInsideReflection)
135 return; 135 return DeprecatedPaintLayerPainter::FullyPainted;
136 136
137 // Mark that we are now inside replica painting. 137 // Mark that we are now inside replica painting.
138 m_isPaintingInsideReflection = true; 138 m_isPaintingInsideReflection = true;
139 DeprecatedPaintLayerPainter(*reflectionLayer()).paintLayer(context, painting Info, flags); 139 DeprecatedPaintLayerPainter::PaintResult result = DeprecatedPaintLayerPainte r(*reflectionLayer()).paintLayer(context, paintingInfo, flags);
140 m_isPaintingInsideReflection = false; 140 m_isPaintingInsideReflection = false;
141 return result;
141 } 142 }
142 143
143 } // namespace blink 144 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698