| Index: third_party/WebKit/Source/core/paint/ScrollbarPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ScrollbarPainter.cpp b/third_party/WebKit/Source/core/paint/ScrollbarPainter.cpp
|
| index 4acc9168785ac8d8d5b88dc2abed8eb2c9a1cded..212349d7a658c235204ecbdbc8bd23b56ccfc6dc 100644
|
| --- a/third_party/WebKit/Source/core/paint/ScrollbarPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ScrollbarPainter.cpp
|
| @@ -6,7 +6,7 @@
|
|
|
| #include "core/layout/LayoutScrollbar.h"
|
| #include "core/layout/LayoutScrollbarPart.h"
|
| -#include "core/paint/ObjectPainter.h"
|
| +#include "core/paint/BlockPainter.h"
|
| #include "core/paint/PaintInfo.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
|
|
| @@ -28,8 +28,18 @@
|
| const_cast<LayoutScrollbarPart&>(layoutScrollbarPart).setWidth(rect.width());
|
| const_cast<LayoutScrollbarPart&>(layoutScrollbarPart).setHeight(rect.height());
|
|
|
| - PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseForeground, GlobalPaintNormalPhase, PaintLayerNoFlag);
|
| - ObjectPainter(layoutScrollbarPart).paintAsPseudoStackingContext(paintInfo, paintOffset);
|
| + // Now do the paint.
|
| + PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, GlobalPaintNormalPhase, PaintLayerNoFlag);
|
| + BlockPainter blockPainter(layoutScrollbarPart);
|
| + blockPainter.paint(paintInfo, paintOffset);
|
| + paintInfo.phase = PaintPhaseChildBlockBackgrounds;
|
| + blockPainter.paint(paintInfo, paintOffset);
|
| + paintInfo.phase = PaintPhaseFloat;
|
| + blockPainter.paint(paintInfo, paintOffset);
|
| + paintInfo.phase = PaintPhaseForeground;
|
| + blockPainter.paint(paintInfo, paintOffset);
|
| + paintInfo.phase = PaintPhaseOutline;
|
| + blockPainter.paint(paintInfo, paintOffset);
|
| }
|
|
|
| } // namespace blink
|
|
|