| 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 "core/paint/SVGContainerPainter.h" | 5 #include "core/paint/SVGContainerPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/svg/LayoutSVGContainer.h" | 7 #include "core/layout/svg/LayoutSVGContainer.h" |
| 8 #include "core/layout/svg/LayoutSVGViewportContainer.h" | 8 #include "core/layout/svg/LayoutSVGViewportContainer.h" |
| 9 #include "core/layout/svg/SVGLayoutSupport.h" | 9 #include "core/layout/svg/SVGLayoutSupport.h" |
| 10 #include "core/paint/FloatClipRecorder.h" | 10 #include "core/paint/FloatClipRecorder.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 for (LayoutObject* child = m_layoutSVGContainer.firstChild(); child; | 65 for (LayoutObject* child = m_layoutSVGContainer.firstChild(); child; |
| 66 child = child->nextSibling()) | 66 child = child->nextSibling()) |
| 67 child->paint(paintContext.paintInfo(), IntPoint()); | 67 child->paint(paintContext.paintInfo(), IntPoint()); |
| 68 } | 68 } |
| 69 } | 69 } |
| 70 | 70 |
| 71 if (paintInfoBeforeFiltering.phase != PaintPhaseForeground) | 71 if (paintInfoBeforeFiltering.phase != PaintPhaseForeground) |
| 72 return; | 72 return; |
| 73 | 73 |
| 74 if (m_layoutSVGContainer.style()->outlineWidth() && | 74 if (m_layoutSVGContainer.style()->outlineWidth() && |
| 75 m_layoutSVGContainer.style()->visibility() == EVisibility::Visible) { | 75 m_layoutSVGContainer.style()->visibility() == EVisibility::kVisible) { |
| 76 PaintInfo outlinePaintInfo(paintInfoBeforeFiltering); | 76 PaintInfo outlinePaintInfo(paintInfoBeforeFiltering); |
| 77 outlinePaintInfo.phase = PaintPhaseSelfOutlineOnly; | 77 outlinePaintInfo.phase = PaintPhaseSelfOutlineOnly; |
| 78 ObjectPainter(m_layoutSVGContainer) | 78 ObjectPainter(m_layoutSVGContainer) |
| 79 .paintOutline(outlinePaintInfo, LayoutPoint(boundingBox.location())); | 79 .paintOutline(outlinePaintInfo, LayoutPoint(boundingBox.location())); |
| 80 } | 80 } |
| 81 | 81 |
| 82 if (paintInfoBeforeFiltering.isPrinting()) | 82 if (paintInfoBeforeFiltering.isPrinting()) |
| 83 ObjectPainter(m_layoutSVGContainer) | 83 ObjectPainter(m_layoutSVGContainer) |
| 84 .addPDFURLRectIfNeeded(paintInfoBeforeFiltering, LayoutPoint()); | 84 .addPDFURLRectIfNeeded(paintInfoBeforeFiltering, LayoutPoint()); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace blink | 87 } // namespace blink |
| OLD | NEW |