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/rendering/svg/SVGRenderSupport.h

Issue 657553002: Fold SVGRenderSupport::fillOrStrokePath into only user (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « no previous file | Source/core/rendering/svg/SVGRenderSupport.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 /** 1 /**
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Shared between SVG renderers and resources. 84 // Shared between SVG renderers and resources.
85 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*); 85 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*);
86 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co nst RenderObject*); 86 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co nst RenderObject*);
87 87
88 // Update the GC state (on |stateSaver.context()|) for painting |renderer| 88 // Update the GC state (on |stateSaver.context()|) for painting |renderer|
89 // using |style|. |resourceModeFlags| is used to decide between fill/stroke. 89 // using |style|. |resourceModeFlags| is used to decide between fill/stroke.
90 // Previous state will be saved (if needed) using |stateSaver|. 90 // Previous state will be saved (if needed) using |stateSaver|.
91 static bool updateGraphicsContext(GraphicsContextStateSaver&, RenderStyle*, RenderObject&, unsigned resourceModeFlags); 91 static bool updateGraphicsContext(GraphicsContextStateSaver&, RenderStyle*, RenderObject&, unsigned resourceModeFlags);
92 92
93 // Fill and/or stroke the provided |path|.
94 static void fillOrStrokePath(GraphicsContext*, unsigned short resourceMode, const Path&);
95
96 // Determines if any ancestor's transform has changed. 93 // Determines if any ancestor's transform has changed.
97 static bool transformToRootChanged(RenderObject*); 94 static bool transformToRootChanged(RenderObject*);
98 95
99 // FIXME: These methods do not belong here. 96 // FIXME: These methods do not belong here.
100 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); 97 static const RenderSVGRoot* findTreeRootObject(const RenderObject*);
101 98
102 // Helper method for determining if a RenderObject marked as text (isText()= = true) 99 // Helper method for determining if a RenderObject marked as text (isText()= = true)
103 // can/will be rendered as part of a <text>. 100 // can/will be rendered as part of a <text>.
104 static bool isRenderableTextNode(const RenderObject*); 101 static bool isRenderableTextNode(const RenderObject*);
105 102
106 private: 103 private:
107 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); 104 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox);
108 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); 105 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start);
109 }; 106 };
110 107
111 } // namespace blink 108 } // namespace blink
112 109
113 #endif // SVGRenderSupport_h 110 #endif // SVGRenderSupport_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/svg/SVGRenderSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698