diff options
Diffstat (limited to 'WebCore/css/CSSProperty.cpp')
-rw-r--r-- | WebCore/css/CSSProperty.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/WebCore/css/CSSProperty.cpp b/WebCore/css/CSSProperty.cpp index 777c0c0..453b381 100644 --- a/WebCore/css/CSSProperty.cpp +++ b/WebCore/css/CSSProperty.cpp @@ -45,10 +45,30 @@ int CSSProperty::resolveDirectionAwareProperty(int propertyID, TextDirection dir return direction == LTR ? CSSPropertyMarginRight : CSSPropertyMarginLeft; case CSSPropertyWebkitMarginStart: return direction == LTR ? CSSPropertyMarginLeft : CSSPropertyMarginRight; + case CSSPropertyWebkitPaddingEnd: return direction == LTR ? CSSPropertyPaddingRight : CSSPropertyPaddingLeft; case CSSPropertyWebkitPaddingStart: return direction == LTR ? CSSPropertyPaddingLeft : CSSPropertyPaddingRight; + + case CSSPropertyWebkitBorderEnd: + return direction == LTR ? CSSPropertyBorderRight : CSSPropertyBorderLeft; + case CSSPropertyWebkitBorderEndColor: + return direction == LTR ? CSSPropertyBorderRightColor : CSSPropertyBorderLeftColor; + case CSSPropertyWebkitBorderEndStyle: + return direction == LTR ? CSSPropertyBorderRightStyle : CSSPropertyBorderLeftStyle; + case CSSPropertyWebkitBorderEndWidth: + return direction == LTR ? CSSPropertyBorderRightWidth : CSSPropertyBorderLeftWidth; + + case CSSPropertyWebkitBorderStart: + return direction == LTR ? CSSPropertyBorderLeft : CSSPropertyBorderRight; + case CSSPropertyWebkitBorderStartColor: + return direction == LTR ? CSSPropertyBorderLeftColor : CSSPropertyBorderRightColor; + case CSSPropertyWebkitBorderStartStyle: + return direction == LTR ? CSSPropertyBorderLeftStyle : CSSPropertyBorderRightStyle; + case CSSPropertyWebkitBorderStartWidth: + return direction == LTR ? CSSPropertyBorderLeftWidth : CSSPropertyBorderRightWidth; + default: return propertyID; } |