StyleRareNonInheritedData.h [plain text]
#pragma once
#include "CSSPropertyNames.h"
#include "ClipPathOperation.h"
#include "CounterDirectives.h"
#include "DataRef.h"
#include "FillLayer.h"
#include "LengthPoint.h"
#include "LineClampValue.h"
#include "NinePieceImage.h"
#include "ShapeValue.h"
#include "StyleContentAlignmentData.h"
#include "StyleSelfAlignmentData.h"
#include "WillChangeData.h"
#include <memory>
#include <wtf/Vector.h>
namespace WebCore {
class AnimationList;
class ContentData;
class ShadowData;
class StyleDeprecatedFlexibleBoxData;
class StyleFilterData;
class StyleFlexibleBoxData;
class StyleGridData;
class StyleGridItemData;
class StyleMarqueeData;
class StyleMultiColData;
class StyleReflection;
class StyleResolver;
class StyleScrollSnapArea;
class StyleScrollSnapPort;
class StyleTransformData;
struct LengthSize;
struct StyleDashboardRegion;
enum PageSizeType {
PAGE_SIZE_AUTO, PAGE_SIZE_AUTO_LANDSCAPE, PAGE_SIZE_AUTO_PORTRAIT, PAGE_SIZE_RESOLVED };
class StyleRareNonInheritedData : public RefCounted<StyleRareNonInheritedData> {
public:
static Ref<StyleRareNonInheritedData> create() { return adoptRef(*new StyleRareNonInheritedData); }
Ref<StyleRareNonInheritedData> copy() const;
~StyleRareNonInheritedData();
bool operator==(const StyleRareNonInheritedData&) const;
bool operator!=(const StyleRareNonInheritedData& other) const { return !(*this == other); }
bool contentDataEquivalent(const StyleRareNonInheritedData&) const;
bool hasFilters() const;
#if ENABLE(FILTERS_LEVEL_2)
bool hasBackdropFilters() const;
#endif
bool hasOpacity() const { return opacity < 1; }
float opacity;
float aspectRatioDenominator;
float aspectRatioNumerator;
float perspective;
Length perspectiveOriginX;
Length perspectiveOriginY;
LineClampValue lineClamp;
IntSize initialLetter;
#if ENABLE(DASHBOARD_SUPPORT)
Vector<StyleDashboardRegion> dashboardRegions;
#endif
DataRef<StyleDeprecatedFlexibleBoxData> deprecatedFlexibleBox; DataRef<StyleFlexibleBoxData> flexibleBox;
DataRef<StyleMarqueeData> marquee; DataRef<StyleMultiColData> multiCol; DataRef<StyleTransformData> transform; DataRef<StyleFilterData> filter;
#if ENABLE(FILTERS_LEVEL_2)
DataRef<StyleFilterData> backdropFilter; #endif
DataRef<StyleGridData> grid;
DataRef<StyleGridItemData> gridItem;
#if ENABLE(CSS_SCROLL_SNAP)
DataRef<StyleScrollSnapPort> scrollSnapPort;
DataRef<StyleScrollSnapArea> scrollSnapArea;
#endif
std::unique_ptr<ContentData> content;
std::unique_ptr<CounterDirectiveMap> counterDirectives;
String altText;
std::unique_ptr<ShadowData> boxShadow;
RefPtr<WillChangeData> willChange;
RefPtr<StyleReflection> boxReflect;
std::unique_ptr<AnimationList> animations;
std::unique_ptr<AnimationList> transitions;
FillLayer mask;
NinePieceImage maskBoxImage;
LengthSize pageSize;
LengthPoint objectPosition;
RefPtr<ShapeValue> shapeOutside;
Length shapeMargin;
float shapeImageThreshold;
RefPtr<ClipPathOperation> clipPath;
Color textDecorationColor;
Color visitedLinkTextDecorationColor;
Color visitedLinkBackgroundColor;
Color visitedLinkOutlineColor;
Color visitedLinkBorderLeftColor;
Color visitedLinkBorderRightColor;
Color visitedLinkBorderTopColor;
Color visitedLinkBorderBottomColor;
int order;
StyleContentAlignmentData alignContent;
StyleSelfAlignmentData alignItems;
StyleSelfAlignmentData alignSelf;
StyleContentAlignmentData justifyContent;
StyleSelfAlignmentData justifyItems;
StyleSelfAlignmentData justifySelf;
#if ENABLE(TOUCH_EVENTS)
unsigned touchAction : 1; #endif
unsigned pageSizeType : 2; unsigned transformStyle3D : 1; unsigned backfaceVisibility : 1;
unsigned userDrag : 2; unsigned textOverflow : 1; unsigned marginBeforeCollapse : 2; unsigned marginAfterCollapse : 2; unsigned appearance : 6; unsigned borderFit : 1; unsigned textCombine : 1;
unsigned textDecorationStyle : 3;
unsigned aspectRatioType : 2;
#if ENABLE(CSS_COMPOSITING)
unsigned effectiveBlendMode: 5; unsigned isolation : 1; #endif
#if ENABLE(APPLE_PAY)
unsigned applePayButtonStyle : 2;
unsigned applePayButtonType : 3;
#endif
unsigned objectFit : 3;
unsigned breakBefore : 4; unsigned breakAfter : 4;
unsigned breakInside : 3; unsigned resize : 2;
unsigned hasAttrContent : 1;
unsigned isNotFinal : 1;
private:
StyleRareNonInheritedData();
StyleRareNonInheritedData(const StyleRareNonInheritedData&);
};
}