diff --git a/README.md b/README.md index 09fda7a..acf0082 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,8 @@ About The capybara WebKit driver was written by Joe Ferris, Tristan Dunn, and Jason Morrison from [thoughtbot, inc](http://thoughtbot.com/community). +Code for rendering the current webpage to a PNG is borrowed from Phantom.js' implementation. + ![thoughtbot](http://thoughtbot.com/images/tm/logo.png) The names and logos for thoughtbot are trademarks of thoughtbot, inc. diff --git a/src/WebPage.cpp b/src/WebPage.cpp index 5492003..2f1e531 100644 --- a/src/WebPage.cpp +++ b/src/WebPage.cpp @@ -106,12 +106,6 @@ QString WebPage::failureString() { return QString("Unable to load URL: ") + currentFrame()->requestedUrl().toString(); } -/* - * Swiped from Phantom.js, but removed code for rendering to PDFs and GIFs - * - * Takes a QString of the file path to save the image to - * Returns true if it was able to save the file - */ bool WebPage::render(const QString &fileName) { QFileInfo fileInfo(fileName); QDir dir;