diff options
Diffstat (limited to 'webkit/glue/inspector_client_impl.cc')
-rw-r--r-- | webkit/glue/inspector_client_impl.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/glue/inspector_client_impl.cc b/webkit/glue/inspector_client_impl.cc index 704d9e7..d2130dd 100644 --- a/webkit/glue/inspector_client_impl.cc +++ b/webkit/glue/inspector_client_impl.cc @@ -17,6 +17,7 @@ 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" @@ -26,6 +27,9 @@ 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; @@ -139,8 +143,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. - gfx::Size size = web_view->size(); - gfx::Rect damaged_rect(0, 0, size.width(), size.height()); + const WebSize& size = web_view->size(); + WebRect damaged_rect(0, 0, size.width, size.height); web_view->GetDelegate()->DidInvalidateRect(web_view, damaged_rect); } |