| 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" |
| 11 #include "core/layout/svg/SVGResources.h" | 11 #include "core/layout/svg/SVGResources.h" |
| 12 #include "core/layout/svg/SVGResourcesCache.h" | 12 #include "core/layout/svg/SVGResourcesCache.h" |
| 13 #include "core/paint/FloatClipRecorder.h" | |
| 14 #include "core/paint/LayoutObjectDrawingRecorder.h" | 13 #include "core/paint/LayoutObjectDrawingRecorder.h" |
| 15 #include "core/paint/ObjectPainter.h" | 14 #include "core/paint/ObjectPainter.h" |
| 16 #include "core/paint/PaintInfo.h" | 15 #include "core/paint/PaintInfo.h" |
| 17 #include "core/paint/SVGContainerPainter.h" | 16 #include "core/paint/SVGContainerPainter.h" |
| 18 #include "core/paint/SVGPaintContext.h" | 17 #include "core/paint/SVGPaintContext.h" |
| 19 #include "core/paint/TransformRecorder.h" | |
| 20 #include "platform/graphics/GraphicsContextStateSaver.h" | 18 #include "platform/graphics/GraphicsContextStateSaver.h" |
| 21 #include "platform/graphics/paint/PaintRecord.h" | 19 #include "platform/graphics/paint/PaintRecord.h" |
| 22 #include "platform/graphics/paint/PaintRecordBuilder.h" | 20 #include "platform/graphics/paint/PaintRecordBuilder.h" |
| 23 #include "wtf/Optional.h" | 21 #include "wtf/Optional.h" |
| 24 | 22 |
| 25 namespace blink { | 23 namespace blink { |
| 26 | 24 |
| 27 static bool setupNonScalingStrokeContext( | 25 static bool setupNonScalingStrokeContext( |
| 28 AffineTransform& strokeTransform, | 26 AffineTransform& strokeTransform, |
| 29 GraphicsContextStateSaver& stateSaver) { | 27 GraphicsContextStateSaver& stateSaver) { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 PaintInfo markerPaintInfo(builder.context(), paintInfo); | 247 PaintInfo markerPaintInfo(builder.context(), paintInfo); |
| 250 markerPaintInfo.m_cullRect.m_rect = bounds; | 248 markerPaintInfo.m_cullRect.m_rect = bounds; |
| 251 | 249 |
| 252 SVGContainerPainter(marker).paint(markerPaintInfo); | 250 SVGContainerPainter(marker).paint(markerPaintInfo); |
| 253 builder.endRecording(*canvas); | 251 builder.endRecording(*canvas); |
| 254 | 252 |
| 255 canvas->restore(); | 253 canvas->restore(); |
| 256 } | 254 } |
| 257 | 255 |
| 258 } // namespace blink | 256 } // namespace blink |
| OLD | NEW |