From eb6439387ab5035450035d606f6ff32319c13789 Mon Sep 17 00:00:00 2001 From: "cpu@google.com" Date: Wed, 8 Apr 2009 23:16:24 +0000 Subject: 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 --- webkit/glue/inspector_client_impl.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'webkit/glue/inspector_client_impl.cc') 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); } -- cgit v1.1