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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp b/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
index 629f837897ad5c4c2957334d0c57fe801573ec56..1333cc37f7d4cad65595f77f6f775043eaf6290a 100644
--- a/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
+++ b/Source/core/paint/DeprecatedPaintLayerReflectionInfo.cpp
@@ -129,15 +129,16 @@ void DeprecatedPaintLayerReflectionInfo::updateAfterStyleChange(const ComputedSt
m_reflection->setStyle(newStyle.release());
}
-void DeprecatedPaintLayerReflectionInfo::paint(GraphicsContext* context, const DeprecatedPaintLayerPaintingInfo& paintingInfo, PaintLayerFlags flags)
+DeprecatedPaintLayerPainter::PaintResult DeprecatedPaintLayerReflectionInfo::paint(GraphicsContext* context, const DeprecatedPaintLayerPaintingInfo& paintingInfo, PaintLayerFlags flags)
{
if (m_isPaintingInsideReflection)
- return;
+ return DeprecatedPaintLayerPainter::FullyPainted;
// Mark that we are now inside replica painting.
m_isPaintingInsideReflection = true;
- DeprecatedPaintLayerPainter(*reflectionLayer()).paintLayer(context, paintingInfo, flags);
+ DeprecatedPaintLayerPainter::PaintResult result = DeprecatedPaintLayerPainter(*reflectionLayer()).paintLayer(context, paintingInfo, flags);
m_isPaintingInsideReflection = false;
+ return result;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698