Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/SVGImagePainter.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp b/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp |
| index 232c9f517e6e2f5f720a29e0a47cb21e042bc376..7dc34c714c750fa430c2d8d5c773fa207adb6c43 100644 |
| --- a/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp |
| +++ b/third_party/WebKit/Source/core/paint/SVGImagePainter.cpp |
| @@ -24,6 +24,7 @@ void SVGImagePainter::paint(const PaintInfo& paintInfo) |
| { |
| if (paintInfo.phase != PaintPhaseForeground |
| || m_layoutSVGImage.style()->visibility() == HIDDEN |
|
pdr.
2016/06/07 23:02:25
We should just check for "visibility() != VISIBLE"
Shanmuga Pandi
2016/06/08 05:17:13
Done.
|
| + || m_layoutSVGImage.style()->visibility() == COLLAPSE |
| || !m_layoutSVGImage.imageResource()->hasImage()) |
| return; |