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

Unified Diff: Source/core/rendering/RenderReplica.cpp

Issue 21430003: Implement interfaces in PaintInfo and make it a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@getterPaintInfo01
Patch Set: Second try Created 7 years, 5 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/rendering/RenderReplica.cpp
diff --git a/Source/core/rendering/RenderReplica.cpp b/Source/core/rendering/RenderReplica.cpp
index c5831f6c67d9719b832faf88adec39a0641b496a..5b0cca34c04979ec4879acd0bda7a6549c847f76 100644
--- a/Source/core/rendering/RenderReplica.cpp
+++ b/Source/core/rendering/RenderReplica.cpp
@@ -73,19 +73,19 @@ void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this);
- if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseMask)
+ if (paintInfo.getPhase() != PaintPhaseForeground && paintInfo.getPhase() != PaintPhaseMask)
return;
LayoutPoint adjustedPaintOffset = paintOffset + location();
- if (paintInfo.phase == PaintPhaseForeground) {
+ if (paintInfo.getPhase() == PaintPhaseForeground) {
// Turn around and paint the parent layer. Use temporary clipRects, so that the layer doesn't end up caching clip rects
// computing using the wrong rootLayer
RenderLayer* rootPaintingLayer = layer()->transform() ? layer()->parent() : layer()->enclosingTransformedAncestor();
- RenderLayer::LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.rect, PaintBehaviorNormal, LayoutSize(), 0, paintInfo.renderRegion);
+ RenderLayer::LayerPaintingInfo paintingInfo(rootPaintingLayer, paintInfo.getRect(), PaintBehaviorNormal, LayoutSize(), 0, paintInfo.getRenderRegion());
RenderLayer::PaintLayerFlags flags = RenderLayer::PaintLayerHaveTransparency | RenderLayer::PaintLayerAppliedTransform | RenderLayer::PaintLayerTemporaryClipRects | RenderLayer::PaintLayerPaintingReflection;
- layer()->parent()->paintLayer(paintInfo.context, paintingInfo, flags);
- } else if (paintInfo.phase == PaintPhaseMask)
+ layer()->parent()->paintLayer(paintInfo.getContext(), paintingInfo, flags);
+ } else if (paintInfo.getPhase() == PaintPhaseMask)
paintMask(paintInfo, adjustedPaintOffset);
}

Powered by Google App Engine
This is Rietveld 408576698