Modified: trunk/Source/WebKit/efl/ChangeLog (104798 => 104799)
--- trunk/Source/WebKit/efl/ChangeLog 2012-01-12 09:46:46 UTC (rev 104798)
+++ trunk/Source/WebKit/efl/ChangeLog 2012-01-12 09:50:54 UTC (rev 104799)
@@ -1,3 +1,19 @@
+2012-01-12 KwangHyuk Kim <[email protected]>
+
+ [EFL] Modify some API's implementation to let it directly pass Eina_Rectangle into IntRect.
+ https://bugs.webkit.org/show_bug.cgi?id=75695
+
+ Reviewed by Andreas Kling.
+
+ Dereference Eina_Rectangle pointers so the shorter IntRect constructor can be used.
+
+ * ewk/ewk_view.cpp:
+ (ewk_view_paint_context_clip):
+ (ewk_view_paint_context_paint):
+ (ewk_view_paint_context_paint_contents):
+ (ewk_view_paint):
+ (ewk_view_paint_contents):
+
2012-01-11 JungJik Lee <[email protected]>
[EFL] Refactor single backing store scroll code.
Modified: trunk/Source/WebKit/efl/ewk/ewk_view.cpp (104798 => 104799)
--- trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2012-01-12 09:46:46 UTC (rev 104798)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.cpp 2012-01-12 09:50:54 UTC (rev 104799)
@@ -2609,8 +2609,7 @@
{
EINA_SAFETY_ON_NULL_RETURN(context);
EINA_SAFETY_ON_NULL_RETURN(area);
-
- context->graphicContext->clip(WebCore::IntRect(area->x, area->y, area->w, area->h));
+ context->graphicContext->clip(WebCore::IntRect(*area));
}
void ewk_view_paint_context_paint(Ewk_View_Paint_Context* context, const Eina_Rectangle* area)
@@ -2618,7 +2617,7 @@
EINA_SAFETY_ON_NULL_RETURN(context);
EINA_SAFETY_ON_NULL_RETURN(area);
- WebCore::IntRect rect(area->x, area->y, area->w, area->h);
+ WebCore::IntRect rect(*area);
if (context->view->isTransparent())
context->graphicContext->clearRect(rect);
@@ -2630,7 +2629,7 @@
EINA_SAFETY_ON_NULL_RETURN(context);
EINA_SAFETY_ON_NULL_RETURN(area);
- WebCore::IntRect rect(area->x, area->y, area->w, area->h);
+ WebCore::IntRect rect(*area);
if (context->view->isTransparent())
context->graphicContext->clearRect(rect);
@@ -2663,7 +2662,7 @@
if (view->needsLayout())
view->forceLayout();
WebCore::GraphicsContext graphicsContext(cr);
- WebCore::IntRect rect(area->x, area->y, area->w, area->h);
+ WebCore::IntRect rect(*area);
cairo_save(cr);
graphicsContext.save();
@@ -2686,7 +2685,7 @@
EINA_SAFETY_ON_NULL_RETURN_VAL(view, false);
WebCore::GraphicsContext graphicsContext(cr);
- WebCore::IntRect rect(area->x, area->y, area->w, area->h);
+ WebCore::IntRect rect(*area);
cairo_save(cr);
graphicsContext.save();