Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: Source/core/rendering/svg/SVGRenderSupport.h

Issue 463883003: Rename repaint to paintInvalidation in core/rendering/svg. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public: 45 public:
46 // Shares child layouting code between RenderSVGRoot/RenderSVG(Hidden)Contai ner 46 // Shares child layouting code between RenderSVGRoot/RenderSVG(Hidden)Contai ner
47 static void layoutChildren(RenderObject*, bool selfNeedsLayout); 47 static void layoutChildren(RenderObject*, bool selfNeedsLayout);
48 48
49 // Layout resources used by this node. 49 // Layout resources used by this node.
50 static void layoutResourcesIfNeeded(const RenderObject*); 50 static void layoutResourcesIfNeeded(const RenderObject*);
51 51
52 // Helper function determining wheter overflow is hidden 52 // Helper function determining wheter overflow is hidden
53 static bool isOverflowHidden(const RenderObject*); 53 static bool isOverflowHidden(const RenderObject*);
54 54
55 // Calculates the repaintRect in combination with filter, clipper and masker in local coordinates. 55 // Calculates the paintInvalidationRect in combination with filter, clipper and masker in local coordinates.
56 static void intersectRepaintRectWithResources(const RenderObject*, FloatRect &); 56 static void intersectPaintInvalidationRectWithResources(const RenderObject*, FloatRect&);
57 57
58 // Determines whether a container needs to be laid out because it's filtered and a child is being laid out. 58 // Determines whether a container needs to be laid out because it's filtered and a child is being laid out.
59 static bool filtersForceContainerLayout(RenderObject*); 59 static bool filtersForceContainerLayout(RenderObject*);
60 60
61 // Determines whether the passed point lies in a clipping area 61 // Determines whether the passed point lies in a clipping area
62 static bool pointInClippingArea(RenderObject*, const FloatPoint&); 62 static bool pointInClippingArea(RenderObject*, const FloatPoint&);
63 63
64 // Transform |pointInParent| to |object|'s user-space and check if it is 64 // Transform |pointInParent| to |object|'s user-space and check if it is
65 // within the clipping area. Returns false if the transform is singular or 65 // within the clipping area. Returns false if the transform is singular or
66 // the point is outside the clipping area. 66 // the point is outside the clipping area.
67 static bool transformToUserSpaceAndCheckClipping(RenderObject*, const Affine Transform& localTransform, const FloatPoint& pointInParent, FloatPoint& localPoi nt); 67 static bool transformToUserSpaceAndCheckClipping(RenderObject*, const Affine Transform& localTransform, const FloatPoint& pointInParent, FloatPoint& localPoi nt);
68 68
69 static void computeContainerBoundingBoxes(const RenderObject* container, Flo atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi ngBox, FloatRect& repaintBoundingBox); 69 static void computeContainerBoundingBoxes(const RenderObject* container, Flo atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi ngBox, FloatRect& paintInvalidationBoundingBox);
70 70
71 static bool paintInfoIntersectsRepaintRect(const FloatRect& localRepaintRect , const AffineTransform& localTransform, const PaintInfo&); 71 static bool paintInfoIntersectsPaintInvalidationRect(const FloatRect& localP aintInvalidationRect, const AffineTransform& localTransform, const PaintInfo&);
72 72
73 // Important functions used by nearly all SVG renderers centralizing coordin ate transformations / repaint rect calculations 73 // Important functions used by nearly all SVG renderers centralizing coordin ate transformations / paint invalidation rect calculations
74 static LayoutRect clippedOverflowRectForRepaint(const RenderObject*, const R enderLayerModelObject* repaintContainer, const PaintInvalidationState*); 74 static LayoutRect clippedOverflowRectForPaintInvalidation(const RenderObject *, const RenderLayerModelObject* paintInvalidationContainer, const PaintInvalida tionState*);
75 static void computeFloatRectForRepaint(const RenderObject*, const RenderLaye rModelObject* repaintContainer, FloatRect&, bool fixed, const PaintInvalidationS tate*); 75 static void computeFloatRectForPaintInvalidation(const RenderObject*, const RenderLayerModelObject* paintInvalidationContainer, FloatRect&, bool fixed, cons t PaintInvalidationState*);
76 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO bject* repaintContainer, TransformState&, bool* wasFixed = 0, const PaintInvalid ationState* = 0); 76 static void mapLocalToContainer(const RenderObject*, const RenderLayerModelO bject* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pa intInvalidationState* = 0);
77 static const RenderObject* pushMappingToContainer(const RenderObject*, const RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&); 77 static const RenderObject* pushMappingToContainer(const RenderObject*, const RenderLayerModelObject* ancestorToStopAt, RenderGeometryMap&);
78 78
79 // Shared between SVG renderers and resources. 79 // Shared between SVG renderers and resources.
80 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*); 80 static void applyStrokeStyleToContext(GraphicsContext*, const RenderStyle*, const RenderObject*);
81 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co nst RenderObject*); 81 static void applyStrokeStyleToStrokeData(StrokeData*, const RenderStyle*, co nst RenderObject*);
82 82
83 // Determines if any ancestor's transform has changed. 83 // Determines if any ancestor's transform has changed.
84 static bool transformToRootChanged(RenderObject*); 84 static bool transformToRootChanged(RenderObject*);
85 85
86 // FIXME: These methods do not belong here. 86 // FIXME: These methods do not belong here.
87 static const RenderSVGRoot* findTreeRootObject(const RenderObject*); 87 static const RenderSVGRoot* findTreeRootObject(const RenderObject*);
88 88
89 // Helper method for determining if a RenderObject marked as text (isText()= = true) 89 // Helper method for determining if a RenderObject marked as text (isText()= = true)
90 // can/will be rendered as part of a <text>. 90 // can/will be rendered as part of a <text>.
91 static bool isRenderableTextNode(const RenderObject*); 91 static bool isRenderableTextNode(const RenderObject*);
92 92
93 private: 93 private:
94 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox); 94 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje ctBoundingBoxValid, RenderObject* other, FloatRect otherBoundingBox);
95 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start); 95 static bool layoutSizeOfNearestViewportChanged(const RenderObject* start);
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // SVGRenderSupport_h 100 #endif // SVGRenderSupport_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGText.cpp ('k') | Source/core/rendering/svg/SVGRenderSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698