#ifndef CSSToStyleMap_h
#define CSSToStyleMap_h
#include "CSSPropertyNames.h"
#include "LengthBox.h"
namespace WebCore {
class FillLayer;
class CSSValue;
class Animation;
class RenderStyle;
class StyleImage;
class StyleResolver;
class NinePieceImage;
class CSSToStyleMap {
WTF_MAKE_NONCOPYABLE(CSSToStyleMap);
WTF_MAKE_FAST_ALLOCATED;
public:
CSSToStyleMap(StyleResolver* resolver) : m_resolver(resolver) { }
void mapFillAttachment(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillClip(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillComposite(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillBlendMode(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillOrigin(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillImage(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillRepeatX(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillRepeatY(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillSize(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillXPosition(CSSPropertyID, FillLayer*, CSSValue*);
void mapFillYPosition(CSSPropertyID, FillLayer*, CSSValue*);
void mapAnimationDelay(Animation*, CSSValue*);
void mapAnimationDirection(Animation*, CSSValue*);
void mapAnimationDuration(Animation*, CSSValue*);
void mapAnimationFillMode(Animation*, CSSValue*);
void mapAnimationIterationCount(Animation*, CSSValue*);
void mapAnimationName(Animation*, CSSValue*);
void mapAnimationPlayState(Animation*, CSSValue*);
void mapAnimationProperty(Animation*, CSSValue*);
void mapAnimationTimingFunction(Animation*, CSSValue*);
void mapNinePieceImage(CSSPropertyID, CSSValue*, NinePieceImage&);
void mapNinePieceImageSlice(CSSValue*, NinePieceImage&);
LengthBox mapNinePieceImageQuad(CSSValue*);
void mapNinePieceImageRepeat(CSSValue*, NinePieceImage&);
private:
RenderStyle* style() const;
RenderStyle* rootElementStyle() const;
bool useSVGZoomRules() const;
PassRefPtr<StyleImage> styleImage(CSSPropertyID, CSSValue*);
StyleResolver* m_resolver;
};
}
#endif