|
Add 'printing' flag to PaintInfo
This adds a new paint flag - PaintInfo::printing() - to be preferred
before Document::printing() (and GC::printing()) during paint.
These flags should always have the same value.
The users of GC::printing() were the "PDF URL rect" code, SVG text
painting (to disable shadows) and TextPainter.
In the last case, the check can be dropped entirely because
TextPainter::*PaintingStyle explicitly clears |Style::shadow| if
|isPrinting| is true.
Rearrange code in PrintContextTest::printSinglePage to better reflect
the flow of actual printing.
BUG= 424655
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199034
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+47 lines, -40 lines) |
Patch |
|
M |
Source/core/page/PrintContextTest.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/BlockPainter.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/DeprecatedPaintLayerPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/EllipsisBoxPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/FramePainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/ImagePainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/InlinePainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/InlineTextBoxPainter.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/InlineTextBoxPainter.cpp
|
View
|
1
2
3
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/LineBoxListPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/ObjectPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/PaintInfo.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/PaintPhase.h
|
View
|
1
2
3
|
4 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/PartPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/ReplacedPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/SVGContainerPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/SVGInlineTextBoxPainter.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/paint/SVGInlineTextBoxPainter.cpp
|
View
|
1
2
3
|
5 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/SVGRootInlineBoxPainter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/paint/TextPainter.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 23 (6 generated)
|