OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Adobe Systems Inc. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * Copyright (C) 2011 Apple Inc. All rights reserved. | 4 * Copyright (C) 2011 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 if (!element->isFilterEffect()) | 135 if (!element->isFilterEffect()) |
136 continue; | 136 continue; |
137 | 137 |
138 SVGFilterPrimitiveStandardAttributes* effectElement = static_cast<SVGFil
terPrimitiveStandardAttributes*>(element); | 138 SVGFilterPrimitiveStandardAttributes* effectElement = static_cast<SVGFil
terPrimitiveStandardAttributes*>(element); |
139 | 139 |
140 RefPtr<FilterEffect> effect = effectElement->build(builder.get(), parent
Filter); | 140 RefPtr<FilterEffect> effect = effectElement->build(builder.get(), parent
Filter); |
141 if (!effect) | 141 if (!effect) |
142 continue; | 142 continue; |
143 | 143 |
144 effectElement->setStandardAttributes(effect.get()); | 144 effectElement->setStandardAttributes(effect.get()); |
145 effect->setEffectBoundaries(SVGLengthContext::resolveRectangle<SVGFilter
PrimitiveStandardAttributes>(effectElement, filterElement->primitiveUnits(), par
entFilter->sourceImageRect())); | 145 effect->setEffectBoundaries(SVGLengthContext::resolveRectangle<SVGFilter
PrimitiveStandardAttributes>(effectElement, filterElement->primitiveUnitsCurrent
Value(), parentFilter->sourceImageRect())); |
146 ColorSpace colorSpace = filterColorSpace; | 146 ColorSpace colorSpace = filterColorSpace; |
147 if (useFilterColorSpace || getSVGStyledElementColorSpace(effectElement,
colorSpace)) | 147 if (useFilterColorSpace || getSVGStyledElementColorSpace(effectElement,
colorSpace)) |
148 effect->setOperatingColorSpace(colorSpace); | 148 effect->setOperatingColorSpace(colorSpace); |
149 builder->add(effectElement->result(), effect); | 149 builder->add(effectElement->resultCurrentValue(), effect); |
150 } | 150 } |
151 return builder->lastEffect(); | 151 return builder->lastEffect(); |
152 } | 152 } |
153 | 153 |
154 } // namespace WebCore | 154 } // namespace WebCore |
OLD | NEW |