OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 | 93 |
94 if (!gradientData->gradient) | 94 if (!gradientData->gradient) |
95 return SVGPaintServer::invalid(); | 95 return SVGPaintServer::invalid(); |
96 | 96 |
97 gradientData->gradient->setGradientSpaceTransform(gradientData->userspaceTra
nsform); | 97 gradientData->gradient->setGradientSpaceTransform(gradientData->userspaceTra
nsform); |
98 | 98 |
99 return SVGPaintServer(gradientData->gradient); | 99 return SVGPaintServer(gradientData->gradient); |
100 } | 100 } |
101 | 101 |
102 bool LayoutSVGResourceGradient::isChildAllowed(LayoutObject* child, const Layout
Style&) const | 102 bool LayoutSVGResourceGradient::isChildAllowed(LayoutObject* child, const Comput
edStyle&) const |
103 { | 103 { |
104 if (child->isSVGGradientStop()) | 104 if (child->isSVGGradientStop()) |
105 return true; | 105 return true; |
106 | 106 |
107 if (!child->isSVGResourceContainer()) | 107 if (!child->isSVGResourceContainer()) |
108 return false; | 108 return false; |
109 | 109 |
110 return toLayoutSVGResourceContainer(child)->isSVGPaintServer(); | 110 return toLayoutSVGResourceContainer(child)->isSVGPaintServer(); |
111 } | 111 } |
112 | 112 |
(...skipping 16 matching lines...) Expand all Loading... |
129 return SpreadMethodReflect; | 129 return SpreadMethodReflect; |
130 case SVGSpreadMethodRepeat: | 130 case SVGSpreadMethodRepeat: |
131 return SpreadMethodRepeat; | 131 return SpreadMethodRepeat; |
132 } | 132 } |
133 | 133 |
134 ASSERT_NOT_REACHED(); | 134 ASSERT_NOT_REACHED(); |
135 return SpreadMethodPad; | 135 return SpreadMethodPad; |
136 } | 136 } |
137 | 137 |
138 } | 138 } |
OLD | NEW |