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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 class TransformState; | 43 class TransformState; |
44 | 44 |
45 class SVGRenderSupport { | 45 class SVGRenderSupport { |
46 public: | 46 public: |
47 // Shares child layouting code between RenderSVGRoot/RenderSVG(Hidden)Contai ner | 47 // Shares child layouting code between RenderSVGRoot/RenderSVG(Hidden)Contai ner |
48 static void layoutChildren(RenderObject*, bool selfNeedsLayout); | 48 static void layoutChildren(RenderObject*, bool selfNeedsLayout); |
49 | 49 |
50 // Layout resources used by this node. | 50 // Layout resources used by this node. |
51 static void layoutResourcesIfNeeded(const RenderObject*); | 51 static void layoutResourcesIfNeeded(const RenderObject*); |
52 | 52 |
53 // Helper function determining wheter overflow is hidden | 53 // Helper function determining whether overflow is hidden. |
54 static bool isOverflowHidden(const RenderObject*); | 54 static bool isOverflowHidden(const RenderObject*); |
55 | 55 |
56 // Returns true if we're currently within the rendering of a clip-path as a mask. | |
57 static bool isRenderingMaskImage(const RenderObject&); | |
pdr.
2014/10/03 17:06:58
(maybe as a followup) Could we rename this to refl
fs
2014/10/06 08:00:12
Yeah. Makes sense. Will do. (Just reused the curre
| |
58 | |
56 // Calculates the paintInvalidationRect in combination with filter, clipper and masker in local coordinates. | 59 // Calculates the paintInvalidationRect in combination with filter, clipper and masker in local coordinates. |
57 static void intersectPaintInvalidationRectWithResources(const RenderObject*, FloatRect&); | 60 static void intersectPaintInvalidationRectWithResources(const RenderObject*, FloatRect&); |
58 | 61 |
59 // Determines whether a container needs to be laid out because it's filtered and a child is being laid out. | 62 // Determines whether a container needs to be laid out because it's filtered and a child is being laid out. |
60 static bool filtersForceContainerLayout(RenderObject*); | 63 static bool filtersForceContainerLayout(RenderObject*); |
61 | 64 |
62 // Determines whether the passed point lies in a clipping area | 65 // Determines whether the passed point lies in a clipping area |
63 static bool pointInClippingArea(RenderObject*, const FloatPoint&); | 66 static bool pointInClippingArea(RenderObject*, const FloatPoint&); |
64 | 67 |
65 // Transform |pointInParent| to |object|'s user-space and check if it is | 68 // Transform |pointInParent| to |object|'s user-space and check if it is |
(...skipping 29 matching lines...) Expand all Loading... | |
95 static bool isRenderableTextNode(const RenderObject*); | 98 static bool isRenderableTextNode(const RenderObject*); |
96 | 99 |
97 private: | 100 private: |
98 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); | 101 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); |
99 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); | 102 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); |
100 }; | 103 }; |
101 | 104 |
102 } // namespace blink | 105 } // namespace blink |
103 | 106 |
104 #endif // SVGRenderSupport_h | 107 #endif // SVGRenderSupport_h |
OLD | NEW |