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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h

Issue 2265113002: More const LayoutObject references in SVGLayoutSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Helper function determining whether overflow is hidden. 58 // Helper function determining whether overflow is hidden.
59 static bool isOverflowHidden(const LayoutObject*); 59 static bool isOverflowHidden(const LayoutObject*);
60 60
61 // Calculates the paintInvalidationRect in combination with filter, clipper and masker in local coordinates. 61 // Calculates the paintInvalidationRect in combination with filter, clipper and masker in local coordinates.
62 static void intersectPaintInvalidationRectWithResources(const LayoutObject*, FloatRect&); 62 static void intersectPaintInvalidationRectWithResources(const LayoutObject*, FloatRect&);
63 63
64 // Determine if the LayoutObject references a filter resource object. 64 // Determine if the LayoutObject references a filter resource object.
65 static bool hasFilterResource(const LayoutObject&); 65 static bool hasFilterResource(const LayoutObject&);
66 66
67 // Determines whether the passed point lies in a clipping area 67 // Determines whether the passed point lies in a clipping area
68 static bool pointInClippingArea(const LayoutObject*, const FloatPoint&); 68 static bool pointInClippingArea(const LayoutObject&, const FloatPoint&);
69 69
70 // Transform |pointInParent| to |object|'s user-space and check if it is 70 // Transform |pointInParent| to |object|'s user-space and check if it is
71 // within the clipping area. Returns false if the transform is singular or 71 // within the clipping area. Returns false if the transform is singular or
72 // the point is outside the clipping area. 72 // the point is outside the clipping area.
73 static bool transformToUserSpaceAndCheckClipping(const LayoutObject*, const AffineTransform& localTransform, const FloatPoint& pointInParent, FloatPoint& lo calPoint); 73 static bool transformToUserSpaceAndCheckClipping(const LayoutObject&, const AffineTransform& localTransform, const FloatPoint& pointInParent, FloatPoint& lo calPoint);
74 74
75 static void computeContainerBoundingBoxes(const LayoutObject* container, Flo atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi ngBox, FloatRect& paintInvalidationBoundingBox); 75 static void computeContainerBoundingBoxes(const LayoutObject* container, Flo atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi ngBox, FloatRect& paintInvalidationBoundingBox);
76 76
77 // Important functions used by nearly all SVG layoutObjects centralizing coo rdinate transformations / paint invalidation rect calculations 77 // Important functions used by nearly all SVG layoutObjects centralizing coo rdinate transformations / paint invalidation rect calculations
78 static FloatRect localOverflowRectForPaintInvalidation(const LayoutObject&); 78 static FloatRect localOverflowRectForPaintInvalidation(const LayoutObject&);
79 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject &, const LayoutBoxModelObject& paintInvalidationContainer); 79 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject &, const LayoutBoxModelObject& paintInvalidationContainer);
80 static LayoutRect transformPaintInvalidationRect(const LayoutObject&, const AffineTransform&, const FloatRect&); 80 static LayoutRect transformPaintInvalidationRect(const LayoutObject&, const AffineTransform&, const FloatRect&);
81 static bool mapToVisualRectInAncestorSpace(const LayoutObject&, const Layout BoxModelObject* ancestor, const FloatRect& localPaintInvalidationRect, LayoutRec t& resultRect, VisualRectFlags = DefaultVisualRectFlags); 81 static bool mapToVisualRectInAncestorSpace(const LayoutObject&, const Layout BoxModelObject* ancestor, const FloatRect& localPaintInvalidationRect, LayoutRec t& resultRect, VisualRectFlags = DefaultVisualRectFlags);
82 static void mapLocalToAncestor(const LayoutObject*, const LayoutBoxModelObje ct* ancestor, TransformState&, MapCoordinatesFlags); 82 static void mapLocalToAncestor(const LayoutObject*, const LayoutBoxModelObje ct* ancestor, TransformState&, MapCoordinatesFlags);
83 static void mapAncestorToLocal(const LayoutObject&, const LayoutBoxModelObje ct* ancestor, TransformState&); 83 static void mapAncestorToLocal(const LayoutObject&, const LayoutBoxModelObje ct* ancestor, TransformState&);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return true; 175 return true;
176 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child)) 176 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe scendantsForObject(child))
177 return true; 177 return true;
178 } 178 }
179 return false; 179 return false;
180 } 180 }
181 181
182 } // namespace blink 182 } // namespace blink
183 183
184 #endif // SVGLayoutSupport_h 184 #endif // SVGLayoutSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698