| 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/SVGClipPainter.h" | 5 #include "core/paint/SVGClipPainter.h" |
| 6 | 6 |
| 7 #include "core/dom/ElementTraversal.h" | 7 #include "core/dom/ElementTraversal.h" |
| 8 #include "core/layout/svg/LayoutSVGResourceClipper.h" | 8 #include "core/layout/svg/LayoutSVGResourceClipper.h" |
| 9 #include "core/layout/svg/SVGLayoutSupport.h" | 9 #include "core/layout/svg/SVGLayoutSupport.h" |
| 10 #include "core/layout/svg/SVGResources.h" | 10 #include "core/layout/svg/SVGResources.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 TransformRecorder contentTransformRecorder(maskContext, layoutObject, | 157 TransformRecorder contentTransformRecorder(maskContext, layoutObject, |
| 158 contentTransform); | 158 contentTransform); |
| 159 maskContext.getPaintController().createAndAppend<DrawingDisplayItem>( | 159 maskContext.getPaintController().createAndAppend<DrawingDisplayItem>( |
| 160 layoutObject, DisplayItem::kSVGClip, m_clip.createContentPicture()); | 160 layoutObject, DisplayItem::kSVGClip, m_clip.createContentPicture()); |
| 161 } | 161 } |
| 162 } | 162 } |
| 163 | 163 |
| 164 LayoutObjectDrawingRecorder drawingRecorder( | 164 LayoutObjectDrawingRecorder drawingRecorder( |
| 165 context, layoutObject, DisplayItem::kSVGClip, targetVisualRect); | 165 context, layoutObject, DisplayItem::kSVGClip, targetVisualRect); |
| 166 sk_sp<SkPicture> maskPicture = maskPictureBuilder.endRecording(); | 166 sk_sp<PaintRecord> maskPicture = maskPictureBuilder.endRecording(); |
| 167 context.drawPicture(maskPicture.get()); | 167 context.drawPicture(maskPicture.get()); |
| 168 return true; | 168 return true; |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| OLD | NEW |