Commit fb001947 authored by chrishtr's avatar chrishtr Committed by Commit bot

Pass isPrinting and other bits from parent context to child during print.

BUG=718362

Review-Url: https://codereview.chromium.org/2872033002
Cr-Commit-Position: refs/heads/master@{#471204}
parent 1596dc98
layer at (0,0) size 1066x799
LayoutView at (0,0) size 1066x799
layer at (0,0) size 1066x143
LayoutBlockFlow {HTML} at (0,0) size 1066x143
LayoutBlockFlow {BODY} at (8,8) size 1050x127
layer at (8,8) size 332x127 clip at (9,9) size 330x125
LayoutBlockFlow {DIV} at (0,0) size 332x127 [border: (1px solid #000000)]
layer at (9,9) size 330x125
LayoutBlockFlow {DIV} at (1,1) size 330x125
<!doctype HTML>
<style>
#parent {
height: 125px;
width: 330px;
overflow: hidden;
border: 1px solid black;
}
#child {
box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 17px 0px;
height: 125px;
overflow:hidden;
}
</style>
<div id="parent">
<div id="child">
</div>
</div>
<script>
if (window.testRunner)
testRunner.setPrinting();
</script>
...@@ -398,7 +398,8 @@ class ChromePrintContext : public PrintContext { ...@@ -398,7 +398,8 @@ class ChromePrintContext : public PrintContext {
context.ConcatCTM(transform); context.ConcatCTM(transform);
context.ClipRect(page_rect); context.ClipRect(page_rect);
PaintRecordBuilder builder(bounds, &context.Canvas()->getMetaData()); PaintRecordBuilder builder(bounds, &context.Canvas()->getMetaData(),
&context);
// The local scope is so that the cache skipper is destroyed before // The local scope is so that the cache skipper is destroyed before
// we call endRecording(). // we call endRecording().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment