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

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

Issue 564973002: Move a bunch more painting code out of RenderBoxModelObject and into BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged, made more things static. Created 6 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/rendering/RenderFieldset.cpp
diff --git a/Source/core/rendering/RenderFieldset.cpp b/Source/core/rendering/RenderFieldset.cpp
index 68d9ad2ca76c8d93b58493380e9c8ebae05d9110..1245b0a316fd726f016a77dbbe19580b4d267e94 100644
--- a/Source/core/rendering/RenderFieldset.cpp
+++ b/Source/core/rendering/RenderFieldset.cpp
@@ -164,9 +164,9 @@ void RenderFieldset::paintBoxDecorationBackground(PaintInfo& paintInfo, const La
BoxDecorationData boxDecorationData(*style(), canRenderBorderImage(), backgroundHasOpaqueTopLayer(), paintInfo.context);
if (boxDecorationData.bleedAvoidance() == BackgroundBleedNone)
- paintBoxShadow(paintInfo, paintRect, style(), Normal);
+ BoxPainter::paintBoxShadow(paintInfo, paintRect, style(), Normal);
BoxPainter(*this).paintFillLayers(paintInfo, boxDecorationData.backgroundColor, style()->backgroundLayers(), paintRect);
- paintBoxShadow(paintInfo, paintRect, style(), Inset);
+ BoxPainter::paintBoxShadow(paintInfo, paintRect, style(), Inset);
if (!boxDecorationData.hasBorder)
return;
@@ -188,7 +188,7 @@ void RenderFieldset::paintBoxDecorationBackground(PaintInfo& paintInfo, const La
graphicsContext->clipOut(pixelSnappedIntRect(clipLeft, paintRect.y() + legend->y(), clipWidth, legend->height()));
}
- paintBorder(paintInfo, paintRect, style());
+ BoxPainter::paintBorder(*this, paintInfo, paintRect, style());
}
void RenderFieldset::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset)

Powered by Google App Engine
This is Rietveld 408576698