| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "DOMWindow.h" | 10 #include "DOMWindow.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 NOTIMPLEMENTED(); | 155 NOTIMPLEMENTED(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 static void invalidateNodeBoundingRect(WebViewImpl* web_view) { | 158 static void invalidateNodeBoundingRect(WebViewImpl* web_view) { |
| 159 // TODO(ojan): http://b/1143996 Is it important to just invalidate the rect | 159 // TODO(ojan): http://b/1143996 Is it important to just invalidate the rect |
| 160 // of the node region given that this is not on a critical codepath? | 160 // of the node region given that this is not on a critical codepath? |
| 161 // In order to do so, we'd have to take scrolling into account. | 161 // In order to do so, we'd have to take scrolling into account. |
| 162 const WebSize& size = web_view->size(); | 162 const WebSize& size = web_view->size(); |
| 163 WebRect damaged_rect(0, 0, size.width, size.height); | 163 WebRect damaged_rect(0, 0, size.width, size.height); |
| 164 if (web_view->GetDelegate()) | 164 if (web_view->GetDelegate()) |
| 165 web_view->GetDelegate()->DidInvalidateRect(web_view, damaged_rect); | 165 web_view->GetDelegate()->didInvalidateRect(damaged_rect); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void WebInspectorClient::highlight(Node* node) { | 168 void WebInspectorClient::highlight(Node* node) { |
| 169 // InspectorController does the actually tracking of the highlighted node | 169 // InspectorController does the actually tracking of the highlighted node |
| 170 // and the drawing of the highlight. Here we just make sure to invalidate | 170 // and the drawing of the highlight. Here we just make sure to invalidate |
| 171 // the rects of the old and new nodes. | 171 // the rects of the old and new nodes. |
| 172 hideHighlight(); | 172 hideHighlight(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 void WebInspectorClient::hideHighlight() { | 175 void WebInspectorClient::hideHighlight() { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 default: | 289 default: |
| 290 NOTREACHED(); | 290 NOTREACHED(); |
| 291 break; | 291 break; |
| 292 } | 292 } |
| 293 data.append(entry); | 293 data.append(entry); |
| 294 data.append("\n"); | 294 data.append("\n"); |
| 295 } | 295 } |
| 296 inspected_web_view_->delegate()->UpdateInspectorSettings( | 296 inspected_web_view_->delegate()->UpdateInspectorSettings( |
| 297 webkit_glue::StringToStdWString(data)); | 297 webkit_glue::StringToStdWString(data)); |
| 298 } | 298 } |
| OLD | NEW |