OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/paint/SVGMaskPainter.h" | 5 #include "core/paint/SVGMaskPainter.h" |
6 | 6 |
7 #include "core/layout/svg/LayoutSVGResourceMasker.h" | 7 #include "core/layout/svg/LayoutSVGResourceMasker.h" |
8 #include "core/paint/LayoutObjectDrawingRecorder.h" | 8 #include "core/paint/LayoutObjectDrawingRecorder.h" |
9 #include "core/paint/ObjectPaintProperties.h" | 9 #include "core/paint/ObjectPaintProperties.h" |
10 #include "core/paint/PaintInfo.h" | 10 #include "core/paint/PaintInfo.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 contentTransformation, targetBoundingBox, context); | 74 contentTransformation, targetBoundingBox, context); |
75 | 75 |
76 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible( | 76 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible( |
77 context, layoutObject, DisplayItem::kSVGMask)) | 77 context, layoutObject, DisplayItem::kSVGMask)) |
78 return; | 78 return; |
79 | 79 |
80 LayoutObjectDrawingRecorder drawingRecorder( | 80 LayoutObjectDrawingRecorder drawingRecorder( |
81 context, layoutObject, DisplayItem::kSVGMask, targetVisualRect); | 81 context, layoutObject, DisplayItem::kSVGMask, targetVisualRect); |
82 context.save(); | 82 context.save(); |
83 context.concatCTM(contentTransformation); | 83 context.concatCTM(contentTransformation); |
84 context.drawRecord(record.get()); | 84 context.drawRecord(record); |
danakj
2017/03/16 20:06:15
move()
| |
85 context.restore(); | 85 context.restore(); |
86 } | 86 } |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
OLD | NEW |