diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/rendering/shapes/ShapeOutsideInfo.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/rendering/shapes/ShapeOutsideInfo.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/chromium/third_party/WebKit/Source/core/rendering/shapes/ShapeOutsideInfo.cpp b/chromium/third_party/WebKit/Source/core/rendering/shapes/ShapeOutsideInfo.cpp index ed58e303568..76f52ddc461 100644 --- a/chromium/third_party/WebKit/Source/core/rendering/shapes/ShapeOutsideInfo.cpp +++ b/chromium/third_party/WebKit/Source/core/rendering/shapes/ShapeOutsideInfo.cpp @@ -35,20 +35,8 @@ namespace WebCore { bool ShapeOutsideInfo::isEnabledFor(const RenderBox* box) { - ShapeValue* shapeValue = box->style()->shapeOutside(); - if (!box->isFloatingWithShapeOutside() || !shapeValue) - return false; - - switch (shapeValue->type()) { - case ShapeValue::Shape: - return shapeValue->shape(); - case ShapeValue::Image: - return false; - case ShapeValue::Outside: - return false; - } - - return false; + ShapeValue* value = box->style()->shapeOutside(); + return box->isFloatingWithShapeOutside() && value->type() == ShapeValue::Shape && value->shape(); } bool ShapeOutsideInfo::computeSegmentsForContainingBlockLine(LayoutUnit lineTop, LayoutUnit floatTop, LayoutUnit lineHeight) |