summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/UIProcess/DrawingAreaProxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/DrawingAreaProxy.cpp')
-rw-r--r--Source/WebKit2/UIProcess/DrawingAreaProxy.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WebKit2/UIProcess/DrawingAreaProxy.cpp b/Source/WebKit2/UIProcess/DrawingAreaProxy.cpp
index 3d1f1aa..f852e2f 100644
--- a/Source/WebKit2/UIProcess/DrawingAreaProxy.cpp
+++ b/Source/WebKit2/UIProcess/DrawingAreaProxy.cpp
@@ -32,9 +32,10 @@ using namespace WebCore;
namespace WebKit {
-DrawingAreaProxy::DrawingAreaProxy(DrawingAreaInfo::Type type, WebPageProxy* webPageProxy)
- : m_info(type, nextIdentifier())
+DrawingAreaProxy::DrawingAreaProxy(DrawingAreaType type, WebPageProxy* webPageProxy)
+ : m_type(type)
, m_webPageProxy(webPageProxy)
+ , m_size(webPageProxy->viewSize())
{
}
@@ -42,12 +43,6 @@ DrawingAreaProxy::~DrawingAreaProxy()
{
}
-DrawingAreaInfo::Identifier DrawingAreaProxy::nextIdentifier()
-{
- static DrawingAreaInfo::Identifier nextID = 1;
- return ++nextID;
-}
-
void DrawingAreaProxy::setSize(const IntSize& size, const IntSize& scrollOffset)
{
if (m_size == size && scrollOffset.isZero())