Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: webkit/glue/webframe_impl.cc

Issue 31010: Hook up inspector highlighting again. This time we use... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 10273)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -94,6 +94,7 @@
#include "HTMLHeadElement.h"
#include "HTMLLinkElement.h"
#include "HistoryItem.h"
+#include "InspectorController.h"
#include "markup.h"
#include "Page.h"
#include "PlatformContextSkia.h"
@@ -289,7 +290,6 @@
MSVC_POP_WARNING()
currently_loading_request_(NULL),
plugin_delegate_(NULL),
- inspected_node_(NULL),
active_match_frame_(NULL),
active_match_index_(-1),
locating_active_rect_(false),
@@ -954,10 +954,6 @@
}
}
-void WebFrameImpl::selectNodeFromInspector(WebCore::Node* node) {
- inspected_node_ = node;
-}
-
void WebFrameImpl::AddMarker(WebCore::Range* range) {
// Use a TextIterator to visit the potentially multiple nodes the range
// covers.
@@ -1457,6 +1453,7 @@
#endif
if (frame_->document() && frameview()) {
frameview()->paint(&gc, dirty_rect);
+ frame_->page()->inspectorController()->drawNodeHighlight(gc);
} else {
gc.fillRect(dirty_rect, Color::white);
}

Powered by Google App Engine
This is Rietveld 408576698