summaryrefslogtreecommitdiff
path: root/Source/WebKit/efl/ewk/ewk_view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/efl/ewk/ewk_view.cpp')
-rw-r--r--Source/WebKit/efl/ewk/ewk_view.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebKit/efl/ewk/ewk_view.cpp b/Source/WebKit/efl/ewk/ewk_view.cpp
index 7a0ee1ed6..8ec867d21 100644
--- a/Source/WebKit/efl/ewk/ewk_view.cpp
+++ b/Source/WebKit/efl/ewk/ewk_view.cpp
@@ -2778,8 +2778,7 @@ Eina_Bool ewk_view_paint(Ewk_View_Private_Data* priv, cairo_t* cr, const Eina_Re
WebCore::FrameView* view = priv->mainFrame->view();
EINA_SAFETY_ON_NULL_RETURN_VAL(view, false);
- if (view->needsLayout())
- view->forceLayout();
+ view->updateLayoutAndStyleIfNeededRecursive();
WebCore::GraphicsContext graphicsContext(cr);
WebCore::IntRect rect(*area);
@@ -2806,6 +2805,7 @@ Eina_Bool ewk_view_paint_contents(Ewk_View_Private_Data* priv, cairo_t* cr, cons
WebCore::GraphicsContext graphicsContext(cr);
WebCore::IntRect rect(*area);
+ view->updateLayoutAndStyleIfNeededRecursive();
cairo_save(cr);
graphicsContext.save();
graphicsContext.clip(rect);