[CSS Exclusions] refactor shape-outside code to use isFloatingWithShapeOutside() helper method
https://bugs.webkit.org/show_bug.cgi?id=113799

Patch by Bem Jones-Bey <bjonesbe@adobe.com> on 2013-04-02
Reviewed by Dirk Schulze.

When reviewing my patch for bug 110349, Julien mentioned that the
common test for floating with shape outside should be factored out.
This patch does that.

No new functionality, so no new tests.

* rendering/ExclusionShapeOutsideInfo.cpp:
(WebCore::ExclusionShapeOutsideInfo::isEnabledFor): Use helper method.
* rendering/RenderBox.h:
(WebCore::RenderBox::exclusionShapeOutsideInfo): Ditto.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::shouldBeNormalFlowOnly): Ditto.
* rendering/RenderObject.h:
(WebCore::RenderObject::hasPaintOffset):  Ditto.
(WebCore::RenderObject::isFloatingWithShapeOutside): Add method to
    encapsulate the common test.

git-svn-id: svn://svn.chromium.org/blink/trunk@147495 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed