diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-21 07:17:41 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-21 07:17:41 +0000 |
commit | 2f312ab5f419b77456eba5e0362af3adaf94f6ad (patch) | |
tree | de5260b704b376e0c602d3ba5364072217c29732 /webkit/glue/webkit_glue.cc | |
parent | 10821128cb8b272856d1df04fdf102f1dda1b3f2 (diff) | |
download | chromium_src-2f312ab5f419b77456eba5e0362af3adaf94f6ad.zip chromium_src-2f312ab5f419b77456eba5e0362af3adaf94f6ad.tar.gz chromium_src-2f312ab5f419b77456eba5e0362af3adaf94f6ad.tar.bz2 |
Enable -Werror on Linux and Win for src/webkit/
BUG=21140
Review URL: http://codereview.chromium.org/1749001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.cc')
-rw-r--r-- | webkit/glue/webkit_glue.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc index f36a0e2..6aa6479 100644 --- a/webkit/glue/webkit_glue.cc +++ b/webkit/glue/webkit_glue.cc @@ -147,7 +147,8 @@ int PageNumberForElementById(WebFrame* web_frame, int NumberOfPages(WebFrame* web_frame, float page_width_in_pixels, float page_height_in_pixels) { - WebSize size(page_width_in_pixels, page_height_in_pixels); + WebSize size(static_cast<int>(page_width_in_pixels), + static_cast<int>(page_height_in_pixels)); int number_of_pages = web_frame->printBegin(size); web_frame->printEnd(); return number_of_pages; |