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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Determines whether a svg node should isolate or not based on ComputedStyl
e. | 101 // Determines whether a svg node should isolate or not based on ComputedStyl
e. |
102 static bool willIsolateBlendingDescendantsForStyle(const ComputedStyle&); | 102 static bool willIsolateBlendingDescendantsForStyle(const ComputedStyle&); |
103 static bool willIsolateBlendingDescendantsForObject(const LayoutObject*); | 103 static bool willIsolateBlendingDescendantsForObject(const LayoutObject*); |
104 template<typename LayoutObjectType> | 104 template<typename LayoutObjectType> |
105 static bool computeHasNonIsolatedBlendingDescendants(const LayoutObjectType*
); | 105 static bool computeHasNonIsolatedBlendingDescendants(const LayoutObjectType*
); |
106 static bool isIsolationRequired(const LayoutObject*); | 106 static bool isIsolationRequired(const LayoutObject*); |
107 | 107 |
108 static AffineTransform deprecatedCalculateTransformToLayer(const LayoutObjec
t*); | 108 static AffineTransform deprecatedCalculateTransformToLayer(const LayoutObjec
t*); |
109 static float calculateScreenFontSizeScalingFactor(const LayoutObject*); | 109 static float calculateScreenFontSizeScalingFactor(const LayoutObject*); |
110 | 110 |
| 111 static LayoutObject* findClosestLayoutSVGText(LayoutObject*, const FloatPoin
t&); |
| 112 |
111 private: | 113 private: |
112 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje
ctBoundingBoxValid, LayoutObject* other, FloatRect otherBoundingBox); | 114 static void updateObjectBoundingBox(FloatRect& objectBoundingBox, bool& obje
ctBoundingBoxValid, LayoutObject* other, FloatRect otherBoundingBox); |
113 static bool layoutSizeOfNearestViewportChanged(const LayoutObject* start); | 115 static bool layoutSizeOfNearestViewportChanged(const LayoutObject* start); |
114 }; | 116 }; |
115 | 117 |
116 class SubtreeContentTransformScope { | 118 class SubtreeContentTransformScope { |
117 STACK_ALLOCATED(); | 119 STACK_ALLOCATED(); |
118 public: | 120 public: |
119 SubtreeContentTransformScope(const AffineTransform&); | 121 SubtreeContentTransformScope(const AffineTransform&); |
120 ~SubtreeContentTransformScope(); | 122 ~SubtreeContentTransformScope(); |
(...skipping 13 matching lines...) Expand all Loading... |
134 return true; | 136 return true; |
135 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe
scendantsForObject(child)) | 137 if (child->hasNonIsolatedBlendingDescendants() && !willIsolateBlendingDe
scendantsForObject(child)) |
136 return true; | 138 return true; |
137 } | 139 } |
138 return false; | 140 return false; |
139 } | 141 } |
140 | 142 |
141 } // namespace blink | 143 } // namespace blink |
142 | 144 |
143 #endif // SVGLayoutSupport_h | 145 #endif // SVGLayoutSupport_h |
OLD | NEW |