Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: webkit/glue/webframe_impl.cc

Issue 180033: Implement layoutTestController.display() method.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Prettify. Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index 1324e34ba5eb730b1c4748f8b700b1f903c14396..a18b4c1348b9aeb1a297757d86498f3cff86f4d4 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1565,12 +1565,15 @@ void WebFrameImpl::Paint(WebCanvas* canvas, const WebRect& rect) {
#else
NOTIMPLEMENTED();
#endif
+ gc.save();
if (frame_->document() && frameview()) {
+ gc.clip(dirty_rect);
frameview()->paint(&gc, dirty_rect);
frame_->page()->inspectorController()->drawNodeHighlight(gc);
} else {
gc.fillRect(dirty_rect, Color::white);
}
+ gc.restore();
}
}
« no previous file with comments | « no previous file | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698