Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: Source/core/paint/SVGShapePainter.cpp

Issue 1230643006: Update inclusion of GraphicsContextStateSaver.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | Source/core/paint/TableCellPainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "config.h" 5 #include "config.h"
6 #include "core/paint/SVGShapePainter.h" 6 #include "core/paint/SVGShapePainter.h"
7 7
8 #include "core/layout/svg/LayoutSVGPath.h" 8 #include "core/layout/svg/LayoutSVGPath.h"
9 #include "core/layout/svg/LayoutSVGResourceMarker.h" 9 #include "core/layout/svg/LayoutSVGResourceMarker.h"
10 #include "core/layout/svg/LayoutSVGShape.h" 10 #include "core/layout/svg/LayoutSVGShape.h"
11 #include "core/layout/svg/SVGLayoutSupport.h" 11 #include "core/layout/svg/SVGLayoutSupport.h"
12 #include "core/layout/svg/SVGMarkerData.h" 12 #include "core/layout/svg/SVGMarkerData.h"
13 #include "core/layout/svg/SVGResources.h" 13 #include "core/layout/svg/SVGResources.h"
14 #include "core/layout/svg/SVGResourcesCache.h" 14 #include "core/layout/svg/SVGResourcesCache.h"
15 #include "core/paint/LayoutObjectDrawingRecorder.h" 15 #include "core/paint/LayoutObjectDrawingRecorder.h"
16 #include "core/paint/ObjectPainter.h" 16 #include "core/paint/ObjectPainter.h"
17 #include "core/paint/PaintInfo.h" 17 #include "core/paint/PaintInfo.h"
18 #include "core/paint/SVGContainerPainter.h" 18 #include "core/paint/SVGContainerPainter.h"
19 #include "core/paint/SVGPaintContext.h" 19 #include "core/paint/SVGPaintContext.h"
20 #include "core/paint/ScopeRecorder.h" 20 #include "core/paint/ScopeRecorder.h"
21 #include "core/paint/TransformRecorder.h" 21 #include "core/paint/TransformRecorder.h"
22 #include "platform/graphics/GraphicsContextStateSaver.h"
22 #include "platform/graphics/paint/SkPictureBuilder.h" 23 #include "platform/graphics/paint/SkPictureBuilder.h"
23 #include "third_party/skia/include/core/SkPaint.h" 24 #include "third_party/skia/include/core/SkPaint.h"
24 #include "third_party/skia/include/core/SkPicture.h" 25 #include "third_party/skia/include/core/SkPicture.h"
25 #include "wtf/Optional.h" 26 #include "wtf/Optional.h"
26 27
27 namespace blink { 28 namespace blink {
28 29
29 static bool setupNonScalingStrokeContext(AffineTransform& strokeTransform, Graph icsContextStateSaver& stateSaver) 30 static bool setupNonScalingStrokeContext(AffineTransform& strokeTransform, Graph icsContextStateSaver& stateSaver)
30 { 31 {
31 if (!strokeTransform.isInvertible()) 32 if (!strokeTransform.isInvertible())
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 position = nonScalingTransform.mapPoint(position); 255 position = nonScalingTransform.mapPoint(position);
255 FloatRect subpathRect = LayoutSVGPath::zeroLengthSubpathRect(position, m _layoutSVGShape.strokeWidth()); 256 FloatRect subpathRect = LayoutSVGPath::zeroLengthSubpathRect(position, m _layoutSVGShape.strokeWidth());
256 if (m_layoutSVGShape.style()->svgStyle().capStyle() == SquareCap) 257 if (m_layoutSVGShape.style()->svgStyle().capStyle() == SquareCap)
257 context->drawRect(subpathRect, fillPaint); 258 context->drawRect(subpathRect, fillPaint);
258 else 259 else
259 context->drawOval(subpathRect, fillPaint); 260 context->drawOval(subpathRect, fillPaint);
260 } 261 }
261 } 262 }
262 263
263 } // namespace blink 264 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | Source/core/paint/TableCellPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698