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

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

Issue 268223003: Move InvalidationGuard/InstanceUpdateBlocker out of SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
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, 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,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 reportAttributeParsingError(parseError, name, value); 106 reportAttributeParsingError(parseError, name, value);
107 } 107 }
108 108
109 void SVGComponentTransferFunctionElement::svgAttributeChanged(const QualifiedNam e& attrName) 109 void SVGComponentTransferFunctionElement::svgAttributeChanged(const QualifiedNam e& attrName)
110 { 110 {
111 if (!isSupportedAttribute(attrName)) { 111 if (!isSupportedAttribute(attrName)) {
112 SVGElement::svgAttributeChanged(attrName); 112 SVGElement::svgAttributeChanged(attrName);
113 return; 113 return;
114 } 114 }
115 115
116 SVGElementInstance::InvalidationGuard invalidationGuard(this); 116 SVGElement::InstanceInvalidationGuard invalidationGuard(this);
117 117
118 invalidateFilterPrimitiveParent(this); 118 invalidateFilterPrimitiveParent(this);
119 } 119 }
120 120
121 ComponentTransferFunction SVGComponentTransferFunctionElement::transferFunction( ) const 121 ComponentTransferFunction SVGComponentTransferFunctionElement::transferFunction( ) const
122 { 122 {
123 ComponentTransferFunction func; 123 ComponentTransferFunction func;
124 func.type = m_type->currentValue()->enumValue(); 124 func.type = m_type->currentValue()->enumValue();
125 func.slope = m_slope->currentValue()->value(); 125 func.slope = m_slope->currentValue()->value();
126 func.intercept = m_intercept->currentValue()->value(); 126 func.intercept = m_intercept->currentValue()->value();
127 func.amplitude = m_amplitude->currentValue()->value(); 127 func.amplitude = m_amplitude->currentValue()->value();
128 func.exponent = m_exponent->currentValue()->value(); 128 func.exponent = m_exponent->currentValue()->value();
129 func.offset = m_offset->currentValue()->value(); 129 func.offset = m_offset->currentValue()->value();
130 func.tableValues = m_tableValues->currentValue()->toFloatVector(); 130 func.tableValues = m_tableValues->currentValue()->toFloatVector();
131 return func; 131 return func;
132 } 132 }
133 133
134 } 134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698