| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Calculates the repaintRect in combination with filter, clipper and masker
in local coordinates. | 52 // Calculates the repaintRect in combination with filter, clipper and masker
in local coordinates. |
| 53 static void intersectRepaintRectWithResources(const RenderObject*, FloatRect
&); | 53 static void intersectRepaintRectWithResources(const RenderObject*, FloatRect
&); |
| 54 | 54 |
| 55 // Determines whether a container needs to be laid out because it's filtered
and a child is being laid out. | 55 // Determines whether a container needs to be laid out because it's filtered
and a child is being laid out. |
| 56 static bool filtersForceContainerLayout(RenderObject*); | 56 static bool filtersForceContainerLayout(RenderObject*); |
| 57 | 57 |
| 58 // Determines whether the passed point lies in a clipping area | 58 // Determines whether the passed point lies in a clipping area |
| 59 static bool pointInClippingArea(RenderObject*, const FloatPoint&); | 59 static bool pointInClippingArea(RenderObject*, const FloatPoint&); |
| 60 | 60 |
| 61 static void computeContainerBoundingBoxes(const RenderObject* container, Flo
atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi
ngBox, FloatRect& repaintBoundingBox); | 61 static void computeContainerBoundingBoxes(const RenderObject* container, Flo
atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi
ngBox, FloatRect& repaintBoundingBox); |
| 62 static bool paintInfoIntersectsRepaintRect(const FloatRect& localRepaintRect
, const AffineTransform& localTransform, const PaintInfo&); | 62 static bool paintInfoIntersectsRepaintRect(const FloatRect& localRepaintRect
, const AffineTransform& localTransform, PaintInfo&); |
| 63 | 63 |
| 64 // Important functions used by nearly all SVG renderers centralizing coordin
ate transformations / repaint rect calculations | 64 // Important functions used by nearly all SVG renderers centralizing coordin
ate transformations / repaint rect calculations |
| 65 static LayoutRect clippedOverflowRectForRepaint(const RenderObject*, const R
enderLayerModelObject* repaintContainer); | 65 static LayoutRect clippedOverflowRectForRepaint(const RenderObject*, const R
enderLayerModelObject* repaintContainer); |
| 66 static void computeFloatRectForRepaint(const RenderObject*, const RenderLaye
rModelObject* repaintContainer, FloatRect&, bool fixed); | 66 static void computeFloatRectForRepaint(const RenderObject*, const RenderLaye
rModelObject* repaintContainer, FloatRect&, bool fixed); |
| 67 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO
bject* repaintContainer, TransformState&, bool* wasFixed = 0); | 67 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO
bject* repaintContainer, TransformState&, bool* wasFixed = 0); |
| 68 static const RenderObject* pushMappingToContainer(const RenderObject*, const
RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); | 68 static const RenderObject* pushMappingToContainer(const RenderObject*, const
RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); |
| 69 static bool checkForSVGRepaintDuringLayout(RenderObject*); | 69 static bool checkForSVGRepaintDuringLayout(RenderObject*); |
| 70 | 70 |
| 71 // Shared between SVG renderers and resources. | 71 // Shared between SVG renderers and resources. |
| 72 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*,
const RenderObject*); | 72 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*,
const RenderObject*); |
| 73 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co
nst RenderObject*); | 73 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co
nst RenderObject*); |
| 74 | 74 |
| 75 // Determines if any ancestor's transform has changed. | 75 // Determines if any ancestor's transform has changed. |
| 76 static bool transformToRootChanged(RenderObject*); | 76 static bool transformToRootChanged(RenderObject*); |
| 77 | 77 |
| 78 // FIXME: These methods do not belong here. | 78 // FIXME: These methods do not belong here. |
| 79 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); | 79 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 // This class is not constructable. | 82 // This class is not constructable. |
| 83 SVGRenderSupport(); | 83 SVGRenderSupport(); |
| 84 ~SVGRenderSupport(); | 84 ~SVGRenderSupport(); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace WebCore | 87 } // namespace WebCore |
| 88 | 88 |
| 89 #endif // SVGRenderSupport_h | 89 #endif // SVGRenderSupport_h |
| OLD | NEW |