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

Side by Side Diff: Source/core/rendering/svg/RenderSVGPath.cpp

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
10 * Copyright (C) 2011 University of Szeged 10 * Copyright (C) 2011 University of Szeged
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 return strokeBoundingBox; 65 return strokeBoundingBox;
66 } 66 }
67 67
68 static void useStrokeStyleToFill(GraphicsContext* context) 68 static void useStrokeStyleToFill(GraphicsContext* context)
69 { 69 {
70 if (Gradient* gradient = context->strokeGradient()) 70 if (Gradient* gradient = context->strokeGradient())
71 context->setFillGradient(gradient); 71 context->setFillGradient(gradient);
72 else if (Pattern* pattern = context->strokePattern()) 72 else if (Pattern* pattern = context->strokePattern())
73 context->setFillPattern(pattern); 73 context->setFillPattern(pattern);
74 else 74 else
75 context->setFillColor(context->strokeColor(), context->strokeColorSpace( )); 75 context->setFillColor(context->strokeColor());
76 } 76 }
77 77
78 void RenderSVGPath::strokeShape(GraphicsContext* context) const 78 void RenderSVGPath::strokeShape(GraphicsContext* context) const
79 { 79 {
80 if (!style()->svgStyle()->hasVisibleStroke()) 80 if (!style()->svgStyle()->hasVisibleStroke())
81 return; 81 return;
82 82
83 RenderSVGShape::strokeShape(context); 83 RenderSVGShape::strokeShape(context);
84 84
85 if (m_zeroLengthLinecapLocations.isEmpty()) 85 if (m_zeroLengthLinecapLocations.isEmpty())
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 if (!strokeWidth() || !shouldStrokeZeroLengthSubpath()) 155 if (!strokeWidth() || !shouldStrokeZeroLengthSubpath())
156 return; 156 return;
157 157
158 SVGSubpathData subpathData(m_zeroLengthLinecapLocations); 158 SVGSubpathData subpathData(m_zeroLengthLinecapLocations);
159 path().apply(&subpathData, SVGSubpathData::updateFromPathElement); 159 path().apply(&subpathData, SVGSubpathData::updateFromPathElement);
160 subpathData.pathIsDone(); 160 subpathData.pathIsDone();
161 } 161 }
162 162
163 } 163 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698