OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO
bject* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pa
intInvalidationState* = 0); | 77 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO
bject* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pa
intInvalidationState* = 0); |
78 static const RenderObject* pushMappingToContainer(const RenderObject*, const
RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); | 78 static const RenderObject* pushMappingToContainer(const RenderObject*, const
RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); |
79 | 79 |
80 // Shared between SVG renderers and resources. | 80 // Shared between SVG renderers and resources. |
81 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*,
const RenderObject*); | 81 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*,
const RenderObject*); |
82 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co
nst RenderObject*); | 82 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co
nst RenderObject*); |
83 | 83 |
84 // Update the GC state (on |paintInfo.context|) for painting |renderer| | 84 // Update the GC state (on |paintInfo.context|) for painting |renderer| |
85 // using |style|. |resourceMode| is used to decide between fill/stroke. | 85 // using |style|. |resourceMode| is used to decide between fill/stroke. |
86 // Previous state will be saved (if needed) using |stateSaver|. | 86 // Previous state will be saved (if needed) using |stateSaver|. |
87 static bool updateGraphicsContext(const PaintInfo&, GraphicsContextStateSave
r&, RenderStyle*, RenderObject&, RenderSVGResourceMode, const AffineTransform* a
dditionalPaintServerTransform = 0); | 87 static bool updateGraphicsContext(const PaintInfo&, GraphicsContextStateSave
r&, const RenderStyle*, RenderObject&, RenderSVGResourceMode, const AffineTransf
orm* additionalPaintServerTransform = 0); |
88 | 88 |
89 // Determines if any ancestor's transform has changed. | 89 // Determines if any ancestor's transform has changed. |
90 static bool transformToRootChanged(RenderObject*); | 90 static bool transformToRootChanged(RenderObject*); |
91 | 91 |
92 // FIXME: These methods do not belong here. | 92 // FIXME: These methods do not belong here. |
93 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); | 93 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); |
94 | 94 |
95 // Helper method for determining if a RenderObject marked as text (isText()=
= true) | 95 // Helper method for determining if a RenderObject marked as text (isText()=
= true) |
96 // can/will be rendered as part of a <text>. | 96 // can/will be rendered as part of a <text>. |
97 static bool isRenderableTextNode(const RenderObject*); | 97 static bool isRenderableTextNode(const RenderObject*); |
(...skipping 18 matching lines...) Expand all Loading... |
116 return true; | 116 return true; |
117 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe
scendantsForObject(child)) | 117 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe
scendantsForObject(child)) |
118 return true; | 118 return true; |
119 } | 119 } |
120 return false; | 120 return false; |
121 } | 121 } |
122 | 122 |
123 } // namespace blink | 123 } // namespace blink |
124 | 124 |
125 #endif // SVGRenderSupport_h | 125 #endif // SVGRenderSupport_h |
OLD | NEW |