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

Unified Diff: Source/core/svg/SVGLengthContext.h

Issue 901193002: De-ExceptionState-ify SVGLengthContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthContext.h
diff --git a/Source/core/svg/SVGLengthContext.h b/Source/core/svg/SVGLengthContext.h
index 758cb6d93988def38c597b93d4bed46187517be3..a1be724eabe1b4a9fbc431c9918e75b551264669 100644
--- a/Source/core/svg/SVGLengthContext.h
+++ b/Source/core/svg/SVGLengthContext.h
@@ -25,7 +25,6 @@
namespace blink {
-class ExceptionState;
class SVGElement;
class SVGLength;
@@ -57,29 +56,28 @@ public:
template<typename T>
static FloatRect resolveRectangle(const T* context, SVGUnitTypes::SVGUnitType type, const FloatRect& viewport)
{
- return SVGLengthContext::resolveRectangle(context, type, viewport, context->x()->currentValue(), context->y()->currentValue(), context->width()->currentValue(), context->height()->currentValue());
+ return resolveRectangle(context, type, viewport, context->x()->currentValue(), context->y()->currentValue(), context->width()->currentValue(), context->height()->currentValue());
}
static FloatRect resolveRectangle(const SVGElement*, SVGUnitTypes::SVGUnitType, const FloatRect& viewport, PassRefPtrWillBeRawPtr<SVGLength> x, PassRefPtrWillBeRawPtr<SVGLength> y, PassRefPtrWillBeRawPtr<SVGLength> width, PassRefPtrWillBeRawPtr<SVGLength> height);
static FloatPoint resolvePoint(const SVGElement*, SVGUnitTypes::SVGUnitType, PassRefPtrWillBeRawPtr<SVGLength> x, PassRefPtrWillBeRawPtr<SVGLength> y);
static float resolveLength(const SVGElement*, SVGUnitTypes::SVGUnitType, PassRefPtrWillBeRawPtr<SVGLength>);
- float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit, ExceptionState&) const;
- float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit, ExceptionState&) const;
+ float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit) const;
+ float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit) const;
bool determineViewport(FloatSize&) const;
private:
- float convertValueFromUserUnitsToPercentage(float value, SVGLengthMode, ExceptionState&) const;
- float convertValueFromPercentageToUserUnits(float value, SVGLengthMode, ExceptionState&) const;
- static float convertValueFromPercentageToUserUnits(float value, SVGLengthMode, const FloatSize& viewportSize);
+ static float convertValueFromUserUnitsToPercentage(float value, SVGLengthMode, const FloatSize&);
+ static float convertValueFromPercentageToUserUnits(float value, SVGLengthMode, const FloatSize&);
static float convertValueFromPercentageToUserUnits(const SVGLength& value, const FloatSize& viewportSize);
- float convertValueFromUserUnitsToEMS(float value, ExceptionState&) const;
- float convertValueFromEMSToUserUnits(float value, ExceptionState&) const;
+ float convertValueFromUserUnitsToEMS(float value) const;
+ float convertValueFromEMSToUserUnits(float value) const;
- float convertValueFromUserUnitsToEXS(float value, ExceptionState&) const;
- float convertValueFromEXSToUserUnits(float value, ExceptionState&) const;
+ float convertValueFromUserUnitsToEXS(float value) const;
+ float convertValueFromEXSToUserUnits(float value) const;
RawPtrWillBeMember<const SVGElement> m_context;
};
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698