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

Side by Side Diff: Source/core/layout/svg/LayoutSVGShape.cpp

Issue 1070703002: Explicitly use SkPaint(s) in SVGInlineTextBoxPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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
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 13 matching lines...) Expand all
24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 * Boston, MA 02110-1301, USA. 25 * Boston, MA 02110-1301, USA.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "config.h"
29 #include "core/layout/svg/LayoutSVGShape.h" 29 #include "core/layout/svg/LayoutSVGShape.h"
30 30
31 #include "core/layout/HitTestResult.h" 31 #include "core/layout/HitTestResult.h"
32 #include "core/layout/LayoutAnalyzer.h" 32 #include "core/layout/LayoutAnalyzer.h"
33 #include "core/layout/PointerEventsHitRules.h" 33 #include "core/layout/PointerEventsHitRules.h"
34 #include "core/layout/svg/LayoutSVGResourcePaintServer.h"
34 #include "core/layout/svg/SVGLayoutSupport.h" 35 #include "core/layout/svg/SVGLayoutSupport.h"
35 #include "core/layout/svg/SVGPathData.h" 36 #include "core/layout/svg/SVGPathData.h"
36 #include "core/layout/svg/SVGResources.h" 37 #include "core/layout/svg/SVGResources.h"
37 #include "core/layout/svg/SVGResourcesCache.h" 38 #include "core/layout/svg/SVGResourcesCache.h"
38 #include "core/paint/SVGShapePainter.h" 39 #include "core/paint/SVGShapePainter.h"
39 #include "core/svg/SVGGraphicsElement.h" 40 #include "core/svg/SVGGraphicsElement.h"
40 #include "core/svg/SVGLengthContext.h" 41 #include "core/svg/SVGLengthContext.h"
41 #include "platform/geometry/FloatPoint.h" 42 #include "platform/geometry/FloatPoint.h"
42 #include "platform/graphics/StrokeData.h" 43 #include "platform/graphics/StrokeData.h"
43 #include "wtf/MathExtras.h" 44 #include "wtf/MathExtras.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI nvalidationBoundingBox); 281 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI nvalidationBoundingBox);
281 } 282 }
282 283
283 float LayoutSVGShape::strokeWidth() const 284 float LayoutSVGShape::strokeWidth() const
284 { 285 {
285 SVGLengthContext lengthContext(element()); 286 SVGLengthContext lengthContext(element());
286 return lengthContext.valueForLength(style()->svgStyle().strokeWidth()); 287 return lengthContext.valueForLength(style()->svgStyle().strokeWidth());
287 } 288 }
288 289
289 } 290 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698