Title: [132987] trunk/Source/WebKit/efl
- Revision
- 132987
- Author
- [email protected]
- Date
- 2012-10-30 22:59:42 -0700 (Tue, 30 Oct 2012)
Log Message
[EFL] Fix failure to highlight nodes on web inspector
https://bugs.webkit.org/show_bug.cgi?id=100303
Patch by Seokju Kwon <[email protected]> on 2012-10-30
Reviewed by Gyuyoung Kim.
It is not working to highlight nodes on web inspector
when using 'Single Backing Store'.
Add code for drawing it if there is the highlighted node.
* ewk/ewk_view_single.cpp:
(_ewk_view_single_smart_repaints_process):
Modified Paths
Diff
Modified: trunk/Source/WebKit/efl/ChangeLog (132986 => 132987)
--- trunk/Source/WebKit/efl/ChangeLog 2012-10-31 05:58:02 UTC (rev 132986)
+++ trunk/Source/WebKit/efl/ChangeLog 2012-10-31 05:59:42 UTC (rev 132987)
@@ -1,3 +1,17 @@
+2012-10-30 Seokju Kwon <[email protected]>
+
+ [EFL] Fix failure to highlight nodes on web inspector
+ https://bugs.webkit.org/show_bug.cgi?id=100303
+
+ Reviewed by Gyuyoung Kim.
+
+ It is not working to highlight nodes on web inspector
+ when using 'Single Backing Store'.
+ Add code for drawing it if there is the highlighted node.
+
+ * ewk/ewk_view_single.cpp:
+ (_ewk_view_single_smart_repaints_process):
+
2012-10-30 Jinwoo Song <[email protected]>
[EFL] Refactor tooltip callback signal in WebKit1
Modified: trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp (132986 => 132987)
--- trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp 2012-10-31 05:58:02 UTC (rev 132986)
+++ trunk/Source/WebKit/efl/ewk/ewk_view_single.cpp 2012-10-31 05:59:42 UTC (rev 132987)
@@ -30,6 +30,11 @@
#include <eina_safety_checks.h>
#include <string.h>
+#if ENABLE(INSPECTOR)
+#include "InspectorController.h"
+#include "Page.h"
+#endif
+
static Ewk_View_Smart_Class _parent_sc = EWK_VIEW_SMART_CLASS_INIT_NULL;
static void _ewk_view_single_on_del(void* data, Evas*, Evas_Object*, void*)
@@ -266,6 +271,15 @@
evas_object_image_data_update_add(smartData->backing_store, rect->x, rect->y, rect->w, rect->h);
}
+#if ENABLE(INSPECTOR)
+ WebCore::Page* page = EWKPrivate::corePage(smartData->self);
+ if (page) {
+ WebCore::InspectorController* controller = page->inspectorController();
+ if (controller->highlightedNode())
+ controller->drawHighlight(*context->graphicContext);
+ }
+#endif
+
ewk_paint_context_restore(context);
ewk_paint_context_free(context);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes