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

Side by Side Diff: Source/core/rendering/svg/ReferenceFilterBuilder.cpp

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698