diff options
Diffstat (limited to 'WebCore/css/CSSPrimitiveValueMappings.h')
-rw-r--r-- | WebCore/css/CSSPrimitiveValueMappings.h | 136 |
1 files changed, 75 insertions, 61 deletions
diff --git a/WebCore/css/CSSPrimitiveValueMappings.h b/WebCore/css/CSSPrimitiveValueMappings.h index 2cf4a1e..1712372 100644 --- a/WebCore/css/CSSPrimitiveValueMappings.h +++ b/WebCore/css/CSSPrimitiveValueMappings.h @@ -216,6 +216,15 @@ template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ControlPart e) case MediaSliderThumbPart: m_value.ident = CSSValueMediaSliderthumb; break; + case MediaTimelineContainerPart: + m_value.ident = CSSValueMediaTimelineContainer; + break; + case MediaCurrentTimePart: + m_value.ident = CSSValueMediaCurrentTimeDisplay; + break; + case MediaTimeRemainingPart: + m_value.ident = CSSValueMediaTimeRemainingDisplay; + break; case MenulistPart: m_value.ident = CSSValueMenulist; break; @@ -1662,6 +1671,72 @@ template<> inline CSSPrimitiveValue::operator TextDirection() const } } +template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EPointerEvents e) + : m_type(CSS_IDENT) +{ + switch (e) { + case PE_NONE: + m_value.ident = CSSValueNone; + break; + case PE_STROKE: + m_value.ident = CSSValueStroke; + break; + case PE_FILL: + m_value.ident = CSSValueFill; + break; + case PE_PAINTED: + m_value.ident = CSSValuePainted; + break; + case PE_VISIBLE: + m_value.ident = CSSValueVisible; + break; + case PE_VISIBLE_STROKE: + m_value.ident = CSSValueVisiblestroke; + break; + case PE_VISIBLE_FILL: + m_value.ident = CSSValueVisiblefill; + break; + case PE_VISIBLE_PAINTED: + m_value.ident = CSSValueVisiblepainted; + break; + case PE_AUTO: + m_value.ident = CSSValueAuto; + break; + case PE_ALL: + m_value.ident = CSSValueAll; + break; + } +} + +template<> inline CSSPrimitiveValue::operator EPointerEvents() const +{ + switch (m_value.ident) { + case CSSValueAll: + return PE_ALL; + case CSSValueAuto: + return PE_AUTO; + case CSSValueNone: + return PE_NONE; + case CSSValueVisiblepainted: + return PE_VISIBLE_PAINTED; + case CSSValueVisiblefill: + return PE_VISIBLE_FILL; + case CSSValueVisiblestroke: + return PE_VISIBLE_STROKE; + case CSSValueVisible: + return PE_VISIBLE; + case CSSValuePainted: + return PE_PAINTED; + case CSSValueFill: + return PE_FILL; + case CSSValueStroke: + return PE_STROKE; + default: + ASSERT_NOT_REACHED(); + return PE_ALL; + } +} + #if ENABLE(SVG) template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineCap e) @@ -1998,67 +2073,6 @@ template<> inline CSSPrimitiveValue::operator EImageRendering() const } } -template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EPointerEvents e) - : m_type(CSS_IDENT) -{ - switch (e) { - case PE_NONE: - m_value.ident = CSSValueNone; - break; - case PE_STROKE: - m_value.ident = CSSValueStroke; - break; - case PE_FILL: - m_value.ident = CSSValueFill; - break; - case PE_PAINTED: - m_value.ident = CSSValuePainted; - break; - case PE_VISIBLE: - m_value.ident = CSSValueVisible; - break; - case PE_VISIBLE_STROKE: - m_value.ident = CSSValueVisiblestroke; - break; - case PE_VISIBLE_FILL: - m_value.ident = CSSValueVisiblefill; - break; - case PE_VISIBLE_PAINTED: - m_value.ident = CSSValueVisiblepainted; - break; - case PE_ALL: - m_value.ident = CSSValueAll; - break; - } -} - -template<> inline CSSPrimitiveValue::operator EPointerEvents() const -{ - switch (m_value.ident) { - case CSSValueAll: - return PE_ALL; - case CSSValueNone: - return PE_NONE; - case CSSValueVisiblepainted: - return PE_VISIBLE_PAINTED; - case CSSValueVisiblefill: - return PE_VISIBLE_FILL; - case CSSValueVisiblestroke: - return PE_VISIBLE_STROKE; - case CSSValueVisible: - return PE_VISIBLE; - case CSSValuePainted: - return PE_PAINTED; - case CSSValueFill: - return PE_FILL; - case CSSValueStroke: - return PE_STROKE; - default: - ASSERT_NOT_REACHED(); - return PE_ALL; - } -} - template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EShapeRendering e) : m_type(CSS_IDENT) { |