| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/paint/SVGContainerPainter.h" | 6 #include "core/paint/SVGContainerPainter.h" |
| 7 | 7 |
| 8 #include "core/layout/svg/LayoutSVGContainer.h" | 8 #include "core/layout/svg/LayoutSVGContainer.h" |
| 9 #include "core/layout/svg/LayoutSVGViewportContainer.h" | 9 #include "core/layout/svg/LayoutSVGViewportContainer.h" |
| 10 #include "core/layout/svg/SVGLayoutSupport.h" | 10 #include "core/layout/svg/SVGLayoutSupport.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 if (paintInfoBeforeFiltering.phase != PaintPhaseForeground) | 58 if (paintInfoBeforeFiltering.phase != PaintPhaseForeground) |
| 59 return; | 59 return; |
| 60 | 60 |
| 61 if (m_layoutSVGContainer.style()->outlineWidth() && m_layoutSVGContainer.sty
le()->visibility() == VISIBLE) { | 61 if (m_layoutSVGContainer.style()->outlineWidth() && m_layoutSVGContainer.sty
le()->visibility() == VISIBLE) { |
| 62 LayoutRect layoutBoundingBox(boundingBox); | 62 LayoutRect layoutBoundingBox(boundingBox); |
| 63 LayoutRect visualOverflowRect = ObjectPainter::outlineBounds(layoutBound
ingBox, m_layoutSVGContainer.styleRef()); | 63 LayoutRect visualOverflowRect = ObjectPainter::outlineBounds(layoutBound
ingBox, m_layoutSVGContainer.styleRef()); |
| 64 ObjectPainter(m_layoutSVGContainer).paintOutline(paintInfoBeforeFilterin
g, layoutBoundingBox, visualOverflowRect); | 64 ObjectPainter(m_layoutSVGContainer).paintOutline(paintInfoBeforeFilterin
g, layoutBoundingBox, visualOverflowRect); |
| 65 } | 65 } |
| 66 | 66 |
| 67 if (paintInfoBeforeFiltering.context->printing()) | 67 if (paintInfoBeforeFiltering.isPrinting()) |
| 68 ObjectPainter(m_layoutSVGContainer).addPDFURLRectIfNeeded(paintInfoBefor
eFiltering, LayoutPoint()); | 68 ObjectPainter(m_layoutSVGContainer).addPDFURLRectIfNeeded(paintInfoBefor
eFiltering, LayoutPoint()); |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| OLD | NEW |