| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef SVGFilterPrimitiveStandardAttributes_h | 21 #ifndef SVGFilterPrimitiveStandardAttributes_h |
| 22 #define SVGFilterPrimitiveStandardAttributes_h | 22 #define SVGFilterPrimitiveStandardAttributes_h |
| 23 | 23 |
| 24 #include "core/svg/SVGAnimatedLength.h" | 24 #include "core/svg/SVGAnimatedLength.h" |
| 25 #include "core/svg/SVGAnimatedString.h" | 25 #include "core/svg/SVGAnimatedString.h" |
| 26 #include "core/svg/SVGElement.h" | 26 #include "core/svg/SVGElement.h" |
| 27 #include "core/svg/SVGUnitTypes.h" |
| 27 #include "platform/heap/Handle.h" | 28 #include "platform/heap/Handle.h" |
| 28 #include "wtf/PassRefPtr.h" | |
| 29 #include "wtf/RefPtr.h" | |
| 30 | 29 |
| 31 namespace blink { | 30 namespace blink { |
| 32 | 31 |
| 33 class Filter; | 32 class Filter; |
| 34 class FilterEffect; | 33 class FilterEffect; |
| 35 class SVGFilterBuilder; | 34 class SVGFilterBuilder; |
| 36 | 35 |
| 37 class SVGFilterPrimitiveStandardAttributes : public SVGElement { | 36 class SVGFilterPrimitiveStandardAttributes : public SVGElement { |
| 38 // No DEFINE_WRAPPERTYPEINFO() here because a) this class is never | 37 // No DEFINE_WRAPPERTYPEINFO() here because a) this class is never |
| 39 // instantiated, and b) we don't generate corresponding V8T.h or V8T.cpp. | 38 // instantiated, and b) we don't generate corresponding V8T.h or V8T.cpp. |
| 40 // The subclasses must write DEFINE_WRAPPERTYPEINFO(). | 39 // The subclasses must write DEFINE_WRAPPERTYPEINFO(). |
| 41 public: | 40 public: |
| 42 void setStandardAttributes(FilterEffect*) const; | 41 void setStandardAttributes( |
| 42 FilterEffect*, SVGUnitTypes::SVGUnitType, const FloatRect& referenceBox)
const; |
| 43 | 43 |
| 44 virtual FilterEffect* build(SVGFilterBuilder*, Filter*) = 0; | 44 virtual FilterEffect* build(SVGFilterBuilder*, Filter*) = 0; |
| 45 // Returns true, if the new value is different from the old one. | 45 // Returns true, if the new value is different from the old one. |
| 46 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); | 46 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); |
| 47 | 47 |
| 48 virtual bool taintsOrigin(bool inputsTaintOrigin) const { return true; } | 48 virtual bool taintsOrigin(bool inputsTaintOrigin) const { return true; } |
| 49 | 49 |
| 50 // JS API | 50 // JS API |
| 51 SVGAnimatedLength* x() const { return m_x.get(); } | 51 SVGAnimatedLength* x() const { return m_x.get(); } |
| 52 SVGAnimatedLength* y() const { return m_y.get(); } | 52 SVGAnimatedLength* y() const { return m_y.get(); } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 76 Member<SVGAnimatedLength> m_width; | 76 Member<SVGAnimatedLength> m_width; |
| 77 Member<SVGAnimatedLength> m_height; | 77 Member<SVGAnimatedLength> m_height; |
| 78 Member<SVGAnimatedString> m_result; | 78 Member<SVGAnimatedString> m_result; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 void invalidateFilterPrimitiveParent(SVGElement*); | 81 void invalidateFilterPrimitiveParent(SVGElement*); |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // SVGFilterPrimitiveStandardAttributes_h | 85 #endif // SVGFilterPrimitiveStandardAttributes_h |
| OLD | NEW |