#ifndef StyleRareNonInheritedData_h
#define StyleRareNonInheritedData_h
#include "core/css/StyleColor.h"
#include "core/rendering/ClipPathOperation.h"
#include "core/rendering/style/BasicShapes.h"
#include "core/rendering/style/CounterDirectives.h"
#include "core/rendering/style/CursorData.h"
#include "core/rendering/style/DataRef.h"
#include "core/rendering/style/FillLayer.h"
#include "core/rendering/style/LineClampValue.h"
#include "core/rendering/style/NinePieceImage.h"
#include "core/rendering/style/RenderStyleConstants.h"
#include "core/rendering/style/ShapeValue.h"
#include "platform/LengthPoint.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
namespace WebCore {
class ContentData;
class CSSAnimationDataList;
class LengthSize;
class ShadowList;
class StyleDeprecatedFlexibleBoxData;
class StyleFilterData;
class StyleFlexibleBoxData;
class StyleGridData;
class StyleGridItemData;
class StyleMarqueeData;
class StyleMultiColData;
class StyleReflection;
class StyleResolver;
class StyleTransformData;
class StyleWillChangeData;
enum PageSizeType {
PAGE_SIZE_AUTO,
PAGE_SIZE_AUTO_LANDSCAPE,
PAGE_SIZE_AUTO_PORTRAIT,
PAGE_SIZE_RESOLVED
};
class StyleRareNonInheritedData : public RefCounted<StyleRareNonInheritedData> {
public:
static PassRefPtr<StyleRareNonInheritedData> create() { return adoptRef(new StyleRareNonInheritedData); }
PassRefPtr<StyleRareNonInheritedData> copy() const { return adoptRef(new StyleRareNonInheritedData(*this)); }
~StyleRareNonInheritedData();
bool operator==(const StyleRareNonInheritedData&) const;
bool operator!=(const StyleRareNonInheritedData& o) const { return !(*this == o); }
bool contentDataEquivalent(const StyleRareNonInheritedData&) const;
bool counterDataEquivalent(const StyleRareNonInheritedData&) const;
bool shadowDataEquivalent(const StyleRareNonInheritedData&) const;
bool reflectionDataEquivalent(const StyleRareNonInheritedData&) const;
bool animationDataEquivalent(const StyleRareNonInheritedData&) const;
bool transitionDataEquivalent(const StyleRareNonInheritedData&) const;
bool hasFilters() const;
bool hasOpacity() const { return opacity < 1; }
float opacity;
float m_aspectRatioDenominator;
float m_aspectRatioNumerator;
float m_perspective;
Length m_perspectiveOriginX;
Length m_perspectiveOriginY;
LineClampValue lineClamp;
DraggableRegionMode m_draggableRegionMode;
DataRef<StyleDeprecatedFlexibleBoxData> m_deprecatedFlexibleBox;
DataRef<StyleFlexibleBoxData> m_flexibleBox;
DataRef<StyleMarqueeData> m_marquee;
DataRef<StyleMultiColData> m_multiCol;
DataRef<StyleTransformData> m_transform;
DataRef<StyleWillChangeData> m_willChange;
DataRef<StyleFilterData> m_filter;
DataRef<StyleGridData> m_grid;
DataRef<StyleGridItemData> m_gridItem;
OwnPtr<ContentData> m_content;
OwnPtr<CounterDirectiveMap> m_counterDirectives;
RefPtr<ShadowList> m_boxShadow;
RefPtr<StyleReflection> m_boxReflect;
OwnPtrWillBePersistent<CSSAnimationDataList> m_animations;
OwnPtrWillBePersistent<CSSAnimationDataList> m_transitions;
FillLayer m_mask;
NinePieceImage m_maskBoxImage;
LengthSize m_pageSize;
RefPtr<ShapeValue> m_shapeOutside;
Length m_shapeMargin;
float m_shapeImageThreshold;
RefPtr<ClipPathOperation> m_clipPath;
StyleColor m_textDecorationColor;
StyleColor m_visitedLinkTextDecorationColor;
StyleColor m_visitedLinkBackgroundColor;
StyleColor m_visitedLinkOutlineColor;
StyleColor m_visitedLinkBorderLeftColor;
StyleColor m_visitedLinkBorderRightColor;
StyleColor m_visitedLinkBorderTopColor;
StyleColor m_visitedLinkBorderBottomColor;
int m_order;
LengthPoint m_objectPosition;
Vector<String> m_callbackSelectors;
unsigned m_pageSizeType : 2;
unsigned m_transformStyle3D : 1;
unsigned m_backfaceVisibility : 1;
unsigned m_alignContent : 3;
unsigned m_alignItems : 4;
unsigned m_alignItemsOverflowAlignment : 2;
unsigned m_alignSelf : 4;
unsigned m_alignSelfOverflowAlignment : 2;
unsigned m_justifyContent : 3;
unsigned userDrag : 2;
unsigned textOverflow : 1;
unsigned marginBeforeCollapse : 2;
unsigned marginAfterCollapse : 2;
unsigned m_appearance : 6;
unsigned m_borderFit : 1;
unsigned m_textCombine : 1;
unsigned m_textDecorationStyle : 3;
unsigned m_wrapFlow: 3;
unsigned m_wrapThrough: 1;
unsigned m_runningAcceleratedAnimation : 1;
unsigned m_hasAspectRatio : 1;
unsigned m_effectiveBlendMode: 5;
unsigned m_touchAction : TouchActionBits;
unsigned m_objectFit : 3;
unsigned m_isolation : 1;
unsigned m_justifySelf : 4;
unsigned m_justifySelfOverflowAlignment : 2;
unsigned m_scrollBehavior: 2;
private:
StyleRareNonInheritedData();
StyleRareNonInheritedData(const StyleRareNonInheritedData&);
};
}
#endif