diff options
Diffstat (limited to 'Source/WebKit/efl/ewk/ewk_paint_context.cpp')
-rw-r--r-- | Source/WebKit/efl/ewk/ewk_paint_context.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/WebKit/efl/ewk/ewk_paint_context.cpp b/Source/WebKit/efl/ewk/ewk_paint_context.cpp index bdbd899bc..c19d13811 100644 --- a/Source/WebKit/efl/ewk/ewk_paint_context.cpp +++ b/Source/WebKit/efl/ewk/ewk_paint_context.cpp @@ -20,6 +20,7 @@ #include "config.h" +#include "TiledBackingStore.h" #include "ewk_paint_context_private.h" #include "ewk_private.h" @@ -158,6 +159,20 @@ void ewk_paint_context_paint(Ewk_Paint_Context* context, WebCore::FrameView* vie WebCore::IntRect paintArea(*area); +#if USE(TILED_BACKING_STORE) + if (view->frame()->tiledBackingStore()) { + int scrollX = view->scrollX(); + int scrollY = view->scrollY(); + + context->graphicContext->translate(-scrollX, -scrollY); + + paintArea.move(scrollX, scrollY); + + view->frame()->tiledBackingStore()->paint(context->graphicContext.get(), paintArea); + return; + } +#endif + if (view->isTransparent()) context->graphicContext->clearRect(paintArea); view->paint(context->graphicContext.get(), paintArea); |