Changeset 64567 in webkit


Ignore:
Timestamp:
Aug 3, 2010 11:08:25 AM (14 years ago)
Author:
kov@webkit.org
Message:

2010-08-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>

Reviewed by Xan Lopez.

[GTK] Does not paint the node highlight used by the inspector
https://bugs.webkit.org/show_bug.cgi?id=43429

Implement highlighting the nodes when using the inspector.

  • WebCoreSupport/InspectorClientGtk.cpp: (WebKit::InspectorClient::highlight): (WebKit::InspectorClient::hideHighlight):
  • webkit/webkitwebview.cpp: (webkit_web_view_expose_event):
Location:
trunk/WebKit/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/gtk/ChangeLog

    r64552 r64567  
     12010-08-03  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Does not paint the node highlight used by the inspector
     6        https://bugs.webkit.org/show_bug.cgi?id=43429
     7
     8        Implement highlighting the nodes when using the inspector.
     9
     10        * WebCoreSupport/InspectorClientGtk.cpp:
     11        (WebKit::InspectorClient::highlight):
     12        (WebKit::InspectorClient::hideHighlight):
     13        * webkit/webkitwebview.cpp:
     14        (webkit_web_view_expose_event):
     15
    1162010-08-03  Xan Lopez  <xlopez@igalia.com>
    217
     
    149164        (WebKit::ChromeClient::reachedApplicationCacheOriginQuota):
    150165        * WebCoreSupport/ChromeClientGtk.h:
    151 
    1521662010-07-26  Steve Block  <steveblock@google.com>
    153167
  • trunk/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp

    r62542 r64567  
    102102}
    103103
    104 void InspectorClient::highlight(Node* node)
    105 {
    106     notImplemented();
     104void InspectorClient::highlight(Node*)
     105{
     106    hideHighlight();
    107107}
    108108
    109109void InspectorClient::hideHighlight()
    110110{
    111     notImplemented();
     111    // FIXME: we should be able to only invalidate the actual rects of
     112    // the new and old nodes. We need to track the nodes, and take the
     113    // actual highlight size into account when calculating the damage
     114    // rect.
     115    gtk_widget_queue_draw(GTK_WIDGET(m_inspectedWebView));
    112116}
    113117
  • trunk/WebKit/gtk/webkit/webkitwebview.cpp

    r64524 r64567  
    550550            }
    551551        }
     552
     553        ctx.save();
     554        ctx.clip(static_cast<IntRect>(event->area));
     555        frame->page()->inspectorController()->drawNodeHighlight(ctx);
     556        ctx.restore();
    552557    }
    553558
Note: See TracChangeset for help on using the changeset viewer.