| Index: WebKit/chromium/src/WebFrameImpl.cpp
|
| ===================================================================
|
| --- WebKit/chromium/src/WebFrameImpl.cpp (revision 55428)
|
| +++ WebKit/chromium/src/WebFrameImpl.cpp (working copy)
|
| @@ -1643,11 +1643,23 @@
|
| view->layoutIfNeededRecursive();
|
| }
|
|
|
| +void WebFrameImpl::paintWithContext(GraphicsContext& gc, const WebRect& rect)
|
| +{
|
| + IntRect dirtyRect(rect);
|
| + gc.save();
|
| + if (m_frame->document() && frameView()) {
|
| + gc.clip(dirtyRect);
|
| + frameView()->paint(&gc, dirtyRect);
|
| + m_frame->page()->inspectorController()->drawNodeHighlight(gc);
|
| + } else
|
| + gc.fillRect(dirtyRect, Color::white, DeviceColorSpace);
|
| + gc.restore();
|
| +}
|
| +
|
| void WebFrameImpl::paint(WebCanvas* canvas, const WebRect& rect)
|
| {
|
| if (rect.isEmpty())
|
| return;
|
| - IntRect dirtyRect(rect);
|
| #if WEBKIT_USING_CG
|
| GraphicsContext gc(canvas);
|
| LocalCurrentGraphicsContext localContext(&gc);
|
| @@ -1659,14 +1671,7 @@
|
| #else
|
| notImplemented();
|
| #endif
|
| - gc.save();
|
| - if (m_frame->document() && frameView()) {
|
| - gc.clip(dirtyRect);
|
| - frameView()->paint(&gc, dirtyRect);
|
| - m_frame->page()->inspectorController()->drawNodeHighlight(gc);
|
| - } else
|
| - gc.fillRect(dirtyRect, Color::white, DeviceColorSpace);
|
| - gc.restore();
|
| + paintWithContext(gc, rect);
|
| }
|
|
|
| void WebFrameImpl::createFrameView()
|
|
|