summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/RenderWidget.h')
-rw-r--r--WebCore/rendering/RenderWidget.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/WebCore/rendering/RenderWidget.h b/WebCore/rendering/RenderWidget.h
index 6cad04a..b85b951 100644
--- a/WebCore/rendering/RenderWidget.h
+++ b/WebCore/rendering/RenderWidget.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
- * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -39,12 +39,17 @@ public:
static RenderWidget* find(const Widget*);
void updateWidgetPosition();
+ void widgetPositionsUpdated();
+ IntRect windowClipRect() const;
void showSubstituteImage(PassRefPtr<Image>);
static void suspendWidgetHierarchyUpdates();
static void resumeWidgetHierarchyUpdates();
+ RenderArena* ref() { ++m_refCount; return renderArena(); }
+ void deref(RenderArena*);
+
protected:
RenderWidget(Node*);
@@ -54,11 +59,11 @@ protected:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
virtual void layout();
+ virtual void paint(PaintInfo&, int x, int y);
private:
virtual bool isWidget() const { return true; }
- virtual void paint(PaintInfo&, int x, int y);
virtual void destroy();
virtual void setSelectionState(SelectionState);
virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y, int tx, int ty, HitTestAction);
@@ -66,13 +71,10 @@ private:
bool setWidgetGeometry(const IntRect&);
- friend class RenderWidgetProtector;
- RenderArena* ref() { ++m_refCount; return renderArena(); }
- void deref(RenderArena*);
-
RefPtr<Widget> m_widget;
RefPtr<Image> m_substituteImage;
FrameView* m_frameView;
+ IntRect m_clipRect; // The rectangle needs to remain correct after scrolling, so it is stored in content view coordinates, and not clipped to window.
int m_refCount;
};