From d441d6f39bb846989d95bcf5caf387b42414718d Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 13 Sep 2013 12:51:20 +0200 Subject: Import Qt5x2 branch of QtWebkit for Qt 5.2 Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen --- Source/WebCore/rendering/RenderScrollbarPart.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Source/WebCore/rendering/RenderScrollbarPart.cpp') diff --git a/Source/WebCore/rendering/RenderScrollbarPart.cpp b/Source/WebCore/rendering/RenderScrollbarPart.cpp index 3eeb1d89f..af8ac3c12 100644 --- a/Source/WebCore/rendering/RenderScrollbarPart.cpp +++ b/Source/WebCore/rendering/RenderScrollbarPart.cpp @@ -30,13 +30,14 @@ #include "RenderScrollbar.h" #include "RenderScrollbarTheme.h" #include "RenderView.h" +#include using namespace std; namespace WebCore { -RenderScrollbarPart::RenderScrollbarPart(Node* node, RenderScrollbar* scrollbar, ScrollbarPart part) - : RenderBlock(node) +RenderScrollbarPart::RenderScrollbarPart(RenderScrollbar* scrollbar, ScrollbarPart part) + : RenderBlock(0) , m_scrollbar(scrollbar) , m_part(part) { @@ -46,6 +47,13 @@ RenderScrollbarPart::~RenderScrollbarPart() { } +RenderScrollbarPart* RenderScrollbarPart::createAnonymous(Document* document, RenderScrollbar* scrollbar, ScrollbarPart part) +{ + RenderScrollbarPart* renderer = new (document->renderArena()) RenderScrollbarPart(scrollbar, part); + renderer->setDocumentForAnonymous(document); + return renderer; +} + void RenderScrollbarPart::layout() { StackStats::LayoutCheckPoint layoutCheckPoint; @@ -143,7 +151,7 @@ void RenderScrollbarPart::styleDidChange(StyleDifference diff, const RenderStyle { RenderBlock::styleDidChange(diff, oldStyle); setInline(false); - setPositioned(false); + clearPositionedState(); setFloating(false); setHasOverflowClip(false); if (oldStyle && m_scrollbar && m_part != NoPart && diff >= StyleDifferenceRepaint) @@ -177,7 +185,7 @@ void RenderScrollbarPart::paintIntoRect(GraphicsContext* graphicsContext, const return; // Now do the paint. - PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, false, 0, 0, 0); + PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, PaintBehaviorNormal); paint(paintInfo, paintOffset); paintInfo.phase = PaintPhaseChildBlockBackgrounds; paint(paintInfo, paintOffset); -- cgit v1.2.1