| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Important functions used by nearly all SVG renderers centralizing coordin
ate transformations / paint invalidation rect calculations | 75 // Important functions used by nearly all SVG renderers centralizing coordin
ate transformations / paint invalidation rect calculations |
| 76 static LayoutRect clippedOverflowRectForPaintInvalidation(const RenderObject
*, const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalida
tionState*); | 76 static LayoutRect clippedOverflowRectForPaintInvalidation(const RenderObject
*, const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalida
tionState*); |
| 77 static void computeFloatRectForPaintInvalidation(const RenderObject*, const
RenderLayerModelObject* paintInvalidationContainer, FloatRect&, const PaintInval
idationState*); | 77 static void computeFloatRectForPaintInvalidation(const RenderObject*, const
RenderLayerModelObject* paintInvalidationContainer, FloatRect&, const PaintInval
idationState*); |
| 78 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO
bject* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pa
intInvalidationState* = 0); | 78 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO
bject* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pa
intInvalidationState* = 0); |
| 79 static const RenderObject* pushMappingToContainer(const RenderObject*, const
RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); | 79 static const RenderObject* pushMappingToContainer(const RenderObject*, const
RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); |
| 80 | 80 |
| 81 // Shared between SVG renderers and resources. | 81 // Shared between SVG renderers and resources. |
| 82 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*,
const RenderObject*); | 82 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*,
const RenderObject*); |
| 83 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co
nst RenderObject*); | 83 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co
nst RenderObject*); |
| 84 | 84 |
| 85 // Fill and/or stroke the primitive provide as either |path| or |shape|. The
former has precedence if both are non-zero. | 85 // Fill and/or stroke the provided |path|. |
| 86 static void fillOrStrokePrimitive(GraphicsContext*, unsigned short resourceM
ode, const Path*, const RenderSVGShape*); | 86 static void fillOrStrokePath(GraphicsContext*, unsigned short resourceMode,
const Path&); |
| 87 | 87 |
| 88 // Determines if any ancestor's transform has changed. | 88 // Determines if any ancestor's transform has changed. |
| 89 static bool transformToRootChanged(RenderObject*); | 89 static bool transformToRootChanged(RenderObject*); |
| 90 | 90 |
| 91 // FIXME: These methods do not belong here. | 91 // FIXME: These methods do not belong here. |
| 92 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); | 92 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); |
| 93 | 93 |
| 94 // Helper method for determining if a RenderObject marked as text (isText()=
= true) | 94 // Helper method for determining if a RenderObject marked as text (isText()=
= true) |
| 95 // can/will be rendered as part of a <text>. | 95 // can/will be rendered as part of a <text>. |
| 96 static bool isRenderableTextNode(const RenderObject*); | 96 static bool isRenderableTextNode(const RenderObject*); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje
ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); | 99 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje
ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); |
| 100 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); | 100 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif // SVGRenderSupport_h | 105 #endif // SVGRenderSupport_h |
| OLD | NEW |