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

Side by Side Diff: Source/core/svg/SVGFEComponentTransferElement.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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
« no previous file with comments | « Source/core/svg/SVGFEColorMatrixElement.cpp ('k') | Source/core/svg/SVGFECompositeElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 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,
(...skipping 19 matching lines...) Expand all
30 #include "core/svg/SVGFEFuncRElement.h" 30 #include "core/svg/SVGFEFuncRElement.h"
31 #include "core/svg/graphics/filters/SVGFilterBuilder.h" 31 #include "core/svg/graphics/filters/SVGFilterBuilder.h"
32 #include "platform/graphics/filters/FilterEffect.h" 32 #include "platform/graphics/filters/FilterEffect.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 inline SVGFEComponentTransferElement::SVGFEComponentTransferElement(Document& do cument) 36 inline SVGFEComponentTransferElement::SVGFEComponentTransferElement(Document& do cument)
37 : SVGFilterPrimitiveStandardAttributes(SVGNames::feComponentTransferTag, doc ument) 37 : SVGFilterPrimitiveStandardAttributes(SVGNames::feComponentTransferTag, doc ument)
38 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( ))) 38 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( )))
39 { 39 {
40 ScriptWrappable::init(this);
41 addToPropertyMap(m_in1); 40 addToPropertyMap(m_in1);
42 } 41 }
43 42
44 DEFINE_NODE_FACTORY(SVGFEComponentTransferElement) 43 DEFINE_NODE_FACTORY(SVGFEComponentTransferElement)
45 44
46 bool SVGFEComponentTransferElement::isSupportedAttribute(const QualifiedName& at trName) 45 bool SVGFEComponentTransferElement::isSupportedAttribute(const QualifiedName& at trName)
47 { 46 {
48 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 47 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
49 if (supportedAttributes.isEmpty()) 48 if (supportedAttributes.isEmpty())
50 supportedAttributes.add(SVGNames::inAttr); 49 supportedAttributes.add(SVGNames::inAttr);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 else if (isSVGFEFuncAElement(*element)) 89 else if (isSVGFEFuncAElement(*element))
91 alpha = toSVGFEFuncAElement(*element).transferFunction(); 90 alpha = toSVGFEFuncAElement(*element).transferFunction();
92 } 91 }
93 92
94 RefPtr<FilterEffect> effect = FEComponentTransfer::create(filter, red, green , blue, alpha); 93 RefPtr<FilterEffect> effect = FEComponentTransfer::create(filter, red, green , blue, alpha);
95 effect->inputEffects().append(input1); 94 effect->inputEffects().append(input1);
96 return effect.release(); 95 return effect.release();
97 } 96 }
98 97
99 } 98 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEColorMatrixElement.cpp ('k') | Source/core/svg/SVGFECompositeElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698