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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp

Issue 1391943005: Document reflection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the TODO. Created 5 years, 2 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) 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 m_reflection->setStyle(newStyle.release()); 129 m_reflection->setStyle(newStyle.release());
130 } 130 }
131 131
132 void PaintLayerReflectionInfo::paint(GraphicsContext* context, const PaintLayerP aintingInfo& paintingInfo, PaintLayerFlags flags) 132 void PaintLayerReflectionInfo::paint(GraphicsContext* context, const PaintLayerP aintingInfo& paintingInfo, PaintLayerFlags flags)
133 { 133 {
134 if (m_isPaintingInsideReflection) 134 if (m_isPaintingInsideReflection)
135 return; 135 return;
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 PaintLayerPainter(*reflectionLayer()).paintLayer(context, paintingInfo, flag s); 139 PaintLayerPainter(*reflectionLayer()).paintLayer(context, paintingInfo, flag s | PaintLayerPaintingReflection);
140 m_isPaintingInsideReflection = false; 140 m_isPaintingInsideReflection = false;
141 } 141 }
142 142
143 } // namespace blink 143 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.h ('k') | third_party/WebKit/Source/core/paint/ReplicaPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698