summaryrefslogtreecommitdiffstats
path: root/webkit/glue/inspector_client_impl.cc
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 23:16:24 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-08 23:16:24 +0000
commiteb6439387ab5035450035d606f6ff32319c13789 (patch)
tree897f9ffa88d64addd5ed0de10039c3dfc383100a /webkit/glue/inspector_client_impl.cc
parent1640ffbff45713748fb31c9bbae46ea47ab6e8e0 (diff)
downloadchromium_src-eb6439387ab5035450035d606f6ff32319c13789.zip
chromium_src-eb6439387ab5035450035d606f6ff32319c13789.tar.gz
chromium_src-eb6439387ab5035450035d606f6ff32319c13789.tar.bz2
Reverting dfisher changes 133386 and 13381
TBR=darin Review URL: http://codereview.chromium.org/58018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/inspector_client_impl.cc')
-rw-r--r--webkit/glue/inspector_client_impl.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/webkit/glue/inspector_client_impl.cc b/webkit/glue/inspector_client_impl.cc
index d2130dd..704d9e7 100644
--- a/webkit/glue/inspector_client_impl.cc
+++ b/webkit/glue/inspector_client_impl.cc
@@ -17,7 +17,6 @@ MSVC_POP_WARNING();
#undef LOG
#include "base/logging.h"
#include "base/gfx/rect.h"
-#include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
#include "webkit/glue/inspector_client_impl.h"
#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/weburlrequest.h"
@@ -27,9 +26,6 @@ MSVC_POP_WARNING();
using namespace WebCore;
-using WebKit::WebRect;
-using WebKit::WebSize;
-
static const float kDefaultInspectorXPos = 10;
static const float kDefaultInspectorYPos = 50;
static const float kDefaultInspectorHeight = 640;
@@ -143,8 +139,8 @@ static void invalidateNodeBoundingRect(WebViewImpl* web_view) {
// TODO(ojan): http://b/1143996 Is it important to just invalidate the rect
// of the node region given that this is not on a critical codepath?
// In order to do so, we'd have to take scrolling into account.
- const WebSize& size = web_view->size();
- WebRect damaged_rect(0, 0, size.width, size.height);
+ gfx::Size size = web_view->size();
+ gfx::Rect damaged_rect(0, 0, size.width(), size.height());
web_view->GetDelegate()->DidInvalidateRect(web_view, damaged_rect);
}