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

Side by Side Diff: Source/core/page/PrintContext.cpp

Issue 16282004: Remove unused includes from various .cpp files in core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: re-add HTMLFormElement to EmptyClients for windows Created 7 years, 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/page/PointerLockController.cpp ('k') | Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 2 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
3 * Copyright (C) 2007 Apple Inc. 3 * Copyright (C) 2007 Apple Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 #include "core/page/PrintContext.h" 22 #include "core/page/PrintContext.h"
23 23
24 #include "core/page/Frame.h" 24 #include "core/page/Frame.h"
25 #include "core/page/FrameView.h" 25 #include "core/page/FrameView.h"
26 #include "core/platform/graphics/GraphicsContext.h" 26 #include "core/platform/graphics/GraphicsContext.h"
27 #include "core/rendering/RenderView.h" 27 #include "core/rendering/RenderView.h"
28 #include "core/rendering/style/StyleInheritedData.h"
29 #include <wtf/text/WTFString.h> 28 #include <wtf/text/WTFString.h>
30 29
31 namespace WebCore { 30 namespace WebCore {
32 31
33 // By imaging to a width a little wider than the available pixels, 32 // By imaging to a width a little wider than the available pixels,
34 // thin pages will be scaled down a little, matching the way they 33 // thin pages will be scaled down a little, matching the way they
35 // print in IE and Camino. This lets them use fewer sheets than they 34 // print in IE and Camino. This lets them use fewer sheets than they
36 // would otherwise, which is presumably why other browsers do this. 35 // would otherwise, which is presumably why other browsers do this.
37 // Wide pages will be scaled down more than this. 36 // Wide pages will be scaled down more than this.
38 const float printingMinimumShrinkFactor = 1.25f; 37 const float printingMinimumShrinkFactor = 1.25f;
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 printContext.spoolPage(graphicsContext, pageIndex, pageWidth); 402 printContext.spoolPage(graphicsContext, pageIndex, pageWidth);
404 graphicsContext.restore(); 403 graphicsContext.restore();
405 404
406 currentHeight += pageSizeInPixels.height() + 1; 405 currentHeight += pageSizeInPixels.height() + 1;
407 } 406 }
408 407
409 graphicsContext.restore(); 408 graphicsContext.restore();
410 } 409 }
411 410
412 } 411 }
OLDNEW
« no previous file with comments | « Source/core/page/PointerLockController.cpp ('k') | Source/core/page/SpatialNavigation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698