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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 static bool pointInClippingArea(LayoutObject*, const FloatPoint&); | 65 static bool pointInClippingArea(LayoutObject*, const FloatPoint&); |
66 | 66 |
67 // Transform |pointInParent| to |object|'s user-space and check if it is | 67 // Transform |pointInParent| to |object|'s user-space and check if it is |
68 // within the clipping area. Returns false if the transform is singular or | 68 // within the clipping area. Returns false if the transform is singular or |
69 // the point is outside the clipping area. | 69 // the point is outside the clipping area. |
70 static bool transformToUserSpaceAndCheckClipping(LayoutObject*, const Affine
Transform& localTransform, const FloatPoint& pointInParent, FloatPoint& localPoi
nt); | 70 static bool transformToUserSpaceAndCheckClipping(LayoutObject*, const Affine
Transform& localTransform, const FloatPoint& pointInParent, FloatPoint& localPoi
nt); |
71 | 71 |
72 static void computeContainerBoundingBoxes(const LayoutObject* container, Flo
atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi
ngBox, FloatRect& paintInvalidationBoundingBox); | 72 static void computeContainerBoundingBoxes(const LayoutObject* container, Flo
atRect& objectBoundingBox, bool& objectBoundingBoxValid, FloatRect& strokeBoundi
ngBox, FloatRect& paintInvalidationBoundingBox); |
73 | 73 |
74 // Important functions used by nearly all SVG layoutObjects centralizing coo
rdinate transformations / paint invalidation rect calculations | 74 // Important functions used by nearly all SVG layoutObjects centralizing coo
rdinate transformations / paint invalidation rect calculations |
75 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject
*, const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidati
onState*); | 75 static LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutObject
&, const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidati
onState*); |
76 static const LayoutSVGRoot& mapRectToSVGRootForPaintInvalidation(const Layou
tObject*, const FloatRect& localPaintInvalidationRect, LayoutRect&); | 76 static const LayoutSVGRoot& mapRectToSVGRootForPaintInvalidation(const Layou
tObject&, const FloatRect& localPaintInvalidationRect, LayoutRect&); |
77 static void mapLocalToContainer(const LayoutObject*, const LayoutBoxModelObj
ect* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pain
tInvalidationState* = 0); | 77 static void mapLocalToContainer(const LayoutObject*, const LayoutBoxModelObj
ect* paintInvalidationContainer, TransformState&, bool* wasFixed = 0, const Pain
tInvalidationState* = 0); |
78 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const
LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&); | 78 static const LayoutObject* pushMappingToContainer(const LayoutObject*, const
LayoutBoxModelObject* ancestorToStopAt, LayoutGeometryMap&); |
79 | 79 |
80 // Shared between SVG layoutObjects and resources. | 80 // Shared between SVG layoutObjects and resources. |
81 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&,
const LayoutObject&); | 81 static void applyStrokeStyleToStrokeData(StrokeData&, const ComputedStyle&,
const LayoutObject&); |
82 | 82 |
83 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl
e&, const SVGLengthContext&); | 83 static DashArray resolveSVGDashArray(const SVGDashArray&, const ComputedStyl
e&, const SVGLengthContext&); |
84 | 84 |
85 // Determines if any ancestor's transform has changed. | 85 // Determines if any ancestor's transform has changed. |
86 static bool transformToRootChanged(LayoutObject*); | 86 static bool transformToRootChanged(LayoutObject*); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 return true; | 124 return true; |
125 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe
scendantsForObject(child)) | 125 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe
scendantsForObject(child)) |
126 return true; | 126 return true; |
127 } | 127 } |
128 return false; | 128 return false; |
129 } | 129 } |
130 | 130 |
131 } // namespace blink | 131 } // namespace blink |
132 | 132 |
133 #endif // SVGLayoutSupport_h | 133 #endif // SVGLayoutSupport_h |
OLD | NEW |