summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/css/CSSComputedStyleDeclaration.cpp')
-rw-r--r--Source/WebCore/css/CSSComputedStyleDeclaration.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
index 208d47019..26615c5f0 100644
--- a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
+++ b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
@@ -57,6 +57,12 @@
#include "WebKitCSSTransformValue.h"
#include "WebKitFontFamilyNames.h"
+#if ENABLE(CSS_EXCLUSIONS)
+#include "CSSWrapShapes.h"
+#include "WrapShapeFunctions.h"
+#include "WrapShapes.h"
+#endif
+
#if ENABLE(CSS_SHADERS)
#include "CustomFilterNumberParameter.h"
#include "CustomFilterOperation.h"
@@ -124,6 +130,9 @@ static const CSSPropertyID computedProperties[] = {
CSSPropertyFontVariant,
CSSPropertyFontWeight,
CSSPropertyHeight,
+#if ENABLE(CSS_IMAGE_ORIENTATION)
+ CSSPropertyImageOrientation,
+#endif
CSSPropertyImageRendering,
#if ENABLE(CSS_IMAGE_RESOLUTION)
CSSPropertyImageResolution,
@@ -1769,6 +1778,10 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
if (style->borderFit() == BorderFitBorder)
return cssValuePool().createIdentifierValue(CSSValueBorder);
return cssValuePool().createIdentifierValue(CSSValueLines);
+#if ENABLE(CSS_IMAGE_ORIENTATION)
+ case CSSPropertyImageOrientation:
+ return cssValuePool().createValue(style->imageOrientation());
+#endif
case CSSPropertyImageRendering:
return CSSPrimitiveValue::create(style->imageRendering());
#if ENABLE(CSS_IMAGE_RESOLUTION)
@@ -2365,11 +2378,11 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
case CSSPropertyWebkitShapeInside:
if (!style->wrapShapeInside())
return cssValuePool().createIdentifierValue(CSSValueAuto);
- return cssValuePool().createValue(style->wrapShapeInside());
+ return valueForWrapShape(style->wrapShapeInside());
case CSSPropertyWebkitShapeOutside:
if (!style->wrapShapeOutside())
return cssValuePool().createIdentifierValue(CSSValueAuto);
- return cssValuePool().createValue(style->wrapShapeOutside());
+ return valueForWrapShape(style->wrapShapeOutside());
case CSSPropertyWebkitWrapThrough:
return cssValuePool().createValue(style->wrapThrough());
#endif