Chromium Code Reviews| 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..2cea06bfeb6c64961db847bbdb3006749953462c 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,12 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout |
| if (!styleImage->canRender(m_layoutObject, style.effectiveZoom())) |
| return false; |
| + if ((style.borderLeftWidth() && style.borderLeft().style() == BNONE) |
|
philipj_slow
2015/11/18 09:28:58
Comment that these conditions are meant to isolate
|
| + || (style.borderRightWidth() && style.borderRight().style() == BNONE) |
| + || (style.borderTopWidth() && style.borderTop().style() == BNONE) |
| + || (style.borderBottomWidth() && style.borderBottom().style() == BNONE)) |
| + 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; |