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

Unified Diff: Source/core/rendering/RenderFlowThread.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: Fixed Linux compilation (hopefuly Windows too), addressing some reviewer's suggestions. 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/RenderFlowThread.cpp
diff --git a/Source/core/rendering/RenderFlowThread.cpp b/Source/core/rendering/RenderFlowThread.cpp
index a6b3ae82591fbbdbd584bb334d486d8bf8507d38..8e4db602f8c80d7ffc161363b59ac687bc4d0643 100644
--- a/Source/core/rendering/RenderFlowThread.cpp
+++ b/Source/core/rendering/RenderFlowThread.cpp
@@ -267,7 +267,7 @@ LayoutRect RenderFlowThread::computeRegionClippingRect(const LayoutPoint& offset
void RenderFlowThread::paintFlowThreadPortionInRegion(PaintInfo& paintInfo, RenderRegion* region, const LayoutRect& flowThreadPortionRect, const LayoutRect& flowThreadPortionOverflowRect, const LayoutPoint& paintOffset) const
{
- GraphicsContext* context = paintInfo.context;
+ GraphicsContext* context = paintInfo.getContext();
if (!context)
return;
@@ -295,17 +295,17 @@ void RenderFlowThread::paintFlowThreadPortionInRegion(PaintInfo& paintInfo, Rend
IntRect regionClippingRect = pixelSnappedIntRect(computeRegionClippingRect(adjustedPaintOffset + portionLocation, flowThreadPortionRect, flowThreadPortionOverflowRect));
PaintInfo info(paintInfo);
- info.rect.intersect(regionClippingRect);
+ info.getRect().intersect(regionClippingRect);
- if (!info.rect.isEmpty()) {
+ if (!info.getRect().isEmpty()) {
context->save();
context->clip(regionClippingRect);
context->translate(adjustedPaintOffset.x(), adjustedPaintOffset.y());
- info.rect.moveBy(-adjustedPaintOffset);
+ info.getRect().moveBy(-adjustedPaintOffset);
- layer()->paint(context, info.rect, 0, 0, region, RenderLayer::PaintLayerTemporaryClipRects);
+ layer()->paint(context, info.getRect(), 0, 0, region, RenderLayer::PaintLayerTemporaryClipRects);
context->restore();
}

Powered by Google App Engine
This is Rietveld 408576698