| Index: third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
|
| index c72e025e71b6011abc6bfd8bf04bb923ded1f844..a963d65a29dcea602dc3ad5834b1c8a4be62a20c 100644
|
| --- a/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp
|
| @@ -5,6 +5,7 @@
|
| #include "config.h"
|
| #include "core/paint/NinePieceImagePainter.h"
|
|
|
| +#include "core/frame/UseCounter.h"
|
| #include "core/layout/ImageQualityController.h"
|
| #include "core/layout/LayoutBoxModelObject.h"
|
| #include "core/paint/BoxPainter.h"
|
| @@ -35,6 +36,14 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout
|
| if (!styleImage->canRender(m_layoutObject, style.effectiveZoom()))
|
| return false;
|
|
|
| + // Find out if the hasImage() check in ComputedStyle::border*Width had any affect, i.e. if a border is non-zero while border-style is
|
| + // none or hidden.
|
| + if ((style.borderLeftWidth() && (style.borderLeft().style() == BNONE || style.borderLeft().style() == BHIDDEN))
|
| + || (style.borderRightWidth() && (style.borderRight().style() == BNONE || style.borderRight().style() == BHIDDEN))
|
| + || (style.borderTopWidth() && (style.borderTop().style() == BNONE || style.borderTop().style() == BHIDDEN))
|
| + || (style.borderBottomWidth() && (style.borderBottom().style() == BNONE || style.borderBottom().style() == BHIDDEN)))
|
| + UseCounter::count(m_layoutObject.document(), UseCounter::BorderImageWithBorderStyleNone);
|
| +
|
| // FIXME: border-image is broken with full page zooming when tiling has to happen, since the tiling function
|
| // doesn't have any understanding of the zoom that is in effect on the tile.
|
| LayoutRect rectWithOutsets = rect;
|
|
|