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

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

Issue 613503002: Move paint code for RenderScrollbar and RenderScrollbarPart into ScrollbarPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/core/rendering/RenderScrollbarPart.h ('k') | Source/core/rendering/RenderScrollbarTheme.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderScrollbarPart.cpp
diff --git a/Source/core/rendering/RenderScrollbarPart.cpp b/Source/core/rendering/RenderScrollbarPart.cpp
index 1d9d4a3894fba4ce603782d088816cf8ae1e3dcf..ce8ed17311751b0ce89b52491a42b660fb50240f 100644
--- a/Source/core/rendering/RenderScrollbarPart.cpp
+++ b/Source/core/rendering/RenderScrollbarPart.cpp
@@ -169,26 +169,6 @@ void RenderScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec
}
}
-void RenderScrollbarPart::paintIntoRect(GraphicsContext* graphicsContext, const LayoutPoint& paintOffset, const LayoutRect& rect)
-{
- // Make sure our dimensions match the rect.
- setLocation(rect.location() - toSize(paintOffset));
- setWidth(rect.width());
- setHeight(rect.height());
-
- // Now do the paint.
- PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, PaintBehaviorNormal);
- paint(paintInfo, paintOffset);
- paintInfo.phase = PaintPhaseChildBlockBackgrounds;
- paint(paintInfo, paintOffset);
- paintInfo.phase = PaintPhaseFloat;
- paint(paintInfo, paintOffset);
- paintInfo.phase = PaintPhaseForeground;
- paint(paintInfo, paintOffset);
- paintInfo.phase = PaintPhaseOutline;
- paint(paintInfo, paintOffset);
-}
-
RenderObject* RenderScrollbarPart::rendererOwningScrollbar() const
{
if (!m_scrollbar)
« no previous file with comments | « Source/core/rendering/RenderScrollbarPart.h ('k') | Source/core/rendering/RenderScrollbarTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698