webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
WebCore::SVGLengthContext Class Reference

#include <SVGLengthContext.h>

Public Member Functions

 SVGLengthContext (const SVGElement *)
 
float valueForLength (const Length &, SVGLengthMode=LengthModeOther)
 
ExceptionOr< float > convertValueToUserUnits (float, SVGLengthMode, SVGLengthType fromUnit) const
 
ExceptionOr< float > convertValueFromUserUnits (float, SVGLengthMode, SVGLengthType toUnit) const
 
bool determineViewport (FloatSize &) const
 
 SVGLengthContext (const SVGElement *)
 
float valueForLength (const Length &, SVGLengthMode=LengthModeOther)
 
ExceptionOr< float > convertValueToUserUnits (float, SVGLengthMode, SVGLengthType fromUnit) const
 
ExceptionOr< float > convertValueFromUserUnits (float, SVGLengthMode, SVGLengthType toUnit) const
 
bool determineViewport (FloatSize &) const
 

Static Public Member Functions

template<typename T >
static FloatRect resolveRectangle (const T *context, SVGUnitTypes::SVGUnitType type, const FloatRect &viewport)
 
static FloatRect resolveRectangle (const SVGElement *, SVGUnitTypes::SVGUnitType, const FloatRect &viewport, const SVGLengthValue &x, const SVGLengthValue &y, const SVGLengthValue &width, const SVGLengthValue &height)
 
static FloatPoint resolvePoint (const SVGElement *, SVGUnitTypes::SVGUnitType, const SVGLengthValue &x, const SVGLengthValue &y)
 
static float resolveLength (const SVGElement *, SVGUnitTypes::SVGUnitType, const SVGLengthValue &)
 
template<typename T >
static FloatRect resolveRectangle (const T *context, SVGUnitTypes::SVGUnitType type, const FloatRect &viewport)
 
static FloatRect resolveRectangle (const SVGElement *, SVGUnitTypes::SVGUnitType, const FloatRect &viewport, const SVGLengthValue &x, const SVGLengthValue &y, const SVGLengthValue &width, const SVGLengthValue &height)
 
static FloatPoint resolvePoint (const SVGElement *, SVGUnitTypes::SVGUnitType, const SVGLengthValue &x, const SVGLengthValue &y)
 
static float resolveLength (const SVGElement *, SVGUnitTypes::SVGUnitType, const SVGLengthValue &)
 

Constructor & Destructor Documentation

◆ SVGLengthContext() [1/2]

WebCore::SVGLengthContext::SVGLengthContext ( const SVGElement context)
explicit

◆ SVGLengthContext() [2/2]

WebCore::SVGLengthContext::SVGLengthContext ( const SVGElement )
explicit

Member Function Documentation

◆ convertValueFromUserUnits() [1/2]

ExceptionOr< float > WebCore::SVGLengthContext::convertValueFromUserUnits ( float  value,
SVGLengthMode  mode,
SVGLengthType  toUnit 
) const

◆ convertValueFromUserUnits() [2/2]

ExceptionOr<float> WebCore::SVGLengthContext::convertValueFromUserUnits ( float  ,
SVGLengthMode  ,
SVGLengthType  toUnit 
) const

◆ convertValueToUserUnits() [1/2]

ExceptionOr< float > WebCore::SVGLengthContext::convertValueToUserUnits ( float  value,
SVGLengthMode  mode,
SVGLengthType  fromUnit 
) const

◆ convertValueToUserUnits() [2/2]

ExceptionOr<float> WebCore::SVGLengthContext::convertValueToUserUnits ( float  ,
SVGLengthMode  ,
SVGLengthType  fromUnit 
) const

◆ determineViewport() [1/2]

bool WebCore::SVGLengthContext::determineViewport ( FloatSize viewportSize) const

◆ determineViewport() [2/2]

bool WebCore::SVGLengthContext::determineViewport ( FloatSize ) const

◆ resolveLength() [1/2]

static float WebCore::SVGLengthContext::resolveLength ( const SVGElement ,
SVGUnitTypes::SVGUnitType  ,
const SVGLengthValue  
)
static

◆ resolveLength() [2/2]

float WebCore::SVGLengthContext::resolveLength ( const SVGElement context,
SVGUnitTypes::SVGUnitType  type,
const SVGLengthValue x 
)
static

◆ resolvePoint() [1/2]

FloatPoint WebCore::SVGLengthContext::resolvePoint ( const SVGElement context,
SVGUnitTypes::SVGUnitType  type,
const SVGLengthValue x,
const SVGLengthValue y 
)
static

◆ resolvePoint() [2/2]

static FloatPoint WebCore::SVGLengthContext::resolvePoint ( const SVGElement ,
SVGUnitTypes::SVGUnitType  ,
const SVGLengthValue x,
const SVGLengthValue y 
)
static

◆ resolveRectangle() [1/4]

template<typename T >
static FloatRect WebCore::SVGLengthContext::resolveRectangle ( const T context,
SVGUnitTypes::SVGUnitType  type,
const FloatRect viewport 
)
inlinestatic

◆ resolveRectangle() [2/4]

template<typename T >
static FloatRect WebCore::SVGLengthContext::resolveRectangle ( const T context,
SVGUnitTypes::SVGUnitType  type,
const FloatRect viewport 
)
inlinestatic

◆ resolveRectangle() [3/4]

FloatRect WebCore::SVGLengthContext::resolveRectangle ( const SVGElement context,
SVGUnitTypes::SVGUnitType  type,
const FloatRect viewport,
const SVGLengthValue x,
const SVGLengthValue y,
const SVGLengthValue width,
const SVGLengthValue height 
)
static

◆ resolveRectangle() [4/4]

static FloatRect WebCore::SVGLengthContext::resolveRectangle ( const SVGElement ,
SVGUnitTypes::SVGUnitType  ,
const FloatRect viewport,
const SVGLengthValue x,
const SVGLengthValue y,
const SVGLengthValue width,
const SVGLengthValue height 
)
static

◆ valueForLength() [1/2]

float WebCore::SVGLengthContext::valueForLength ( const Length length,
SVGLengthMode  mode = LengthModeOther 
)

◆ valueForLength() [2/2]

float WebCore::SVGLengthContext::valueForLength ( const Length ,
SVGLengthMode  = LengthModeOther 
)

The documentation for this class was generated from the following files: