Documenting that some code was borrowed from Phantom.js

This commit is contained in:
Mike Nicholaides 2011-07-03 09:39:47 -04:00
parent 17873240b1
commit 37b3d24fd8
2 changed files with 2 additions and 6 deletions

View File

@ -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.

View File

@ -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;