OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/SVGShapePainter.h" | 5 #include "core/paint/SVGShapePainter.h" |
6 | 6 |
7 #include "core/layout/svg/LayoutSVGResourceMarker.h" | 7 #include "core/layout/svg/LayoutSVGResourceMarker.h" |
8 #include "core/layout/svg/LayoutSVGShape.h" | 8 #include "core/layout/svg/LayoutSVGShape.h" |
9 #include "core/layout/svg/SVGLayoutSupport.h" | 9 #include "core/layout/svg/SVGLayoutSupport.h" |
10 #include "core/layout/svg/SVGMarkerData.h" | 10 #include "core/layout/svg/SVGMarkerData.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 } | 234 } |
235 | 235 |
236 void SVGShapePainter::paintMarker(const PaintInfo& paintInfo, | 236 void SVGShapePainter::paintMarker(const PaintInfo& paintInfo, |
237 const LayoutSVGResourceMarker& marker, | 237 const LayoutSVGResourceMarker& marker, |
238 const MarkerPosition& position, | 238 const MarkerPosition& position, |
239 float strokeWidth) { | 239 float strokeWidth) { |
240 if (!marker.shouldPaint()) | 240 if (!marker.shouldPaint()) |
241 return; | 241 return; |
242 | 242 |
243 TransformRecorder transformRecorder( | 243 TransformRecorder transformRecorder( |
244 paintInfo.context, marker, | 244 paintInfo.context, |
245 marker.markerTransformation(position.origin, position.angle, | 245 marker.markerTransformation(position.origin, position.angle, strokeWidth), |
246 strokeWidth)); | 246 marker.visualRect(), marker.debugName(), |
| 247 marker.paintedOutputOfObjectHasNoEffectRegardlessOfSize()); |
247 Optional<FloatClipRecorder> clipRecorder; | 248 Optional<FloatClipRecorder> clipRecorder; |
248 if (SVGLayoutSupport::isOverflowHidden(&marker)) | 249 if (SVGLayoutSupport::isOverflowHidden(&marker)) { |
249 clipRecorder.emplace(paintInfo.context, marker, paintInfo.phase, | 250 clipRecorder.emplace( |
250 marker.viewport()); | 251 paintInfo.context, paintInfo.phase, marker.viewport(), |
| 252 marker.visualRect(), marker.debugName(), |
| 253 marker.paintedOutputOfObjectHasNoEffectRegardlessOfSize()); |
| 254 } |
251 SVGContainerPainter(marker).paint(paintInfo); | 255 SVGContainerPainter(marker).paint(paintInfo); |
252 } | 256 } |
253 | 257 |
254 } // namespace blink | 258 } // namespace blink |
OLD | NEW |