summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/style/StyleRareInheritedData.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/style/StyleRareInheritedData.h')
-rw-r--r--Source/WebCore/rendering/style/StyleRareInheritedData.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/Source/WebCore/rendering/style/StyleRareInheritedData.h b/Source/WebCore/rendering/style/StyleRareInheritedData.h
index ec0183544..5f7c23636 100644
--- a/Source/WebCore/rendering/style/StyleRareInheritedData.h
+++ b/Source/WebCore/rendering/style/StyleRareInheritedData.h
@@ -26,7 +26,9 @@
#define StyleRareInheritedData_h
#include "Color.h"
+#include "DataRef.h"
#include "Length.h"
+#include "StyleCustomPropertyData.h"
#include <wtf/RefCounted.h>
#include <wtf/PassRefPtr.h>
#include <wtf/text/AtomicString.h>
@@ -47,8 +49,8 @@ class StyleImage;
// actually uses one of these properties.
class StyleRareInheritedData : public RefCounted<StyleRareInheritedData> {
public:
- static PassRef<StyleRareInheritedData> create() { return adoptRef(*new StyleRareInheritedData); }
- PassRef<StyleRareInheritedData> copy() const;
+ static Ref<StyleRareInheritedData> create() { return adoptRef(*new StyleRareInheritedData); }
+ Ref<StyleRareInheritedData> copy() const;
~StyleRareInheritedData();
bool operator==(const StyleRareInheritedData& o) const;
@@ -56,7 +58,6 @@ public:
{
return !(*this == o);
}
- bool shadowDataEquivalent(const StyleRareInheritedData&) const;
RefPtr<StyleImage> listStyleImage;
@@ -69,8 +70,7 @@ public:
Color visitedLinkTextFillColor;
Color visitedLinkTextEmphasisColor;
- OwnPtr<ShadowData> textShadow; // Our text shadow information for shadowed text drawing.
- AtomicString highlight; // Apple-specific extension for custom highlight rendering.
+ std::unique_ptr<ShadowData> textShadow; // Our text shadow information for shadowed text drawing.
RefPtr<CursorList> cursorData;
Length indent;
@@ -78,6 +78,8 @@ public:
Length wordSpacing;
+ DataRef<StyleCustomPropertyData> m_customProperties;
+
// Paged media properties.
short widows;
short orphans;
@@ -90,7 +92,6 @@ public:
unsigned overflowWrap : 1; // EOverflowWrap
unsigned nbspMode : 1; // ENBSPMode
unsigned lineBreak : 3; // LineBreak
- unsigned resize : 2; // EResize
unsigned userSelect : 2; // EUserSelect
unsigned colorSpace : 1; // ColorSpace
unsigned speak : 3; // ESpeak
@@ -108,7 +109,7 @@ public:
#if ENABLE(CSS_IMAGE_ORIENTATION)
unsigned m_imageOrientation : 4; // ImageOrientationEnum
#endif
- unsigned m_imageRendering : 2; // EImageRendering
+ unsigned m_imageRendering : 3; // EImageRendering
unsigned m_lineSnap : 2; // LineSnap
unsigned m_lineAlign : 1; // LineAlign
#if ENABLE(ACCELERATED_OVERFLOW_SCROLLING)
@@ -120,32 +121,34 @@ public:
#endif
#if ENABLE(CSS3_TEXT)
unsigned m_textAlignLast : 3; // TextAlignLast
- unsigned m_textJustify : 3; // TextJustify
+ unsigned m_textJustify : 2; // TextJustify
#endif // CSS3_TEXT
unsigned m_textDecorationSkip : 5; // TextDecorationSkip
unsigned m_textUnderlinePosition : 3; // TextUnderlinePosition
- unsigned m_rubyPosition : 1; // RubyPosition
+ unsigned m_rubyPosition : 2; // RubyPosition
+ unsigned m_textZoom: 1; // TextZoom
#if PLATFORM(IOS)
unsigned touchCalloutEnabled : 1;
#endif
+#if ENABLE(CSS_TRAILING_WORD)
+ unsigned trailingWord : 1;
+#endif
+
+ unsigned m_hangingPunctuation : 4;
+
AtomicString hyphenationString;
short hyphenationLimitBefore;
short hyphenationLimitAfter;
short hyphenationLimitLines;
- AtomicString locale;
-
AtomicString textEmphasisCustomMark;
RefPtr<QuotesData> quotes;
AtomicString m_lineGrid;
unsigned m_tabSize;
-#if PLATFORM(IOS)
- Color compositionFillColor;
-#endif
#if ENABLE(IOS_TEXT_AUTOSIZING)
TextSizeAdjustment textSizeAdjust;
#endif