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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 if (continueRendering) { | 51 if (continueRendering) { |
52 for (LayoutObject* child = m_layoutSVGContainer.firstChild(); child;
child = child->nextSibling()) | 52 for (LayoutObject* child = m_layoutSVGContainer.firstChild(); child;
child = child->nextSibling()) |
53 child->paint(paintContext.paintInfo(), IntPoint()); | 53 child->paint(paintContext.paintInfo(), IntPoint()); |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 if (paintInfoBeforeFiltering.phase != PaintPhaseForeground) | 57 if (paintInfoBeforeFiltering.phase != PaintPhaseForeground) |
58 return; | 58 return; |
59 | 59 |
60 if (m_layoutSVGContainer.style()->outlineWidth() && m_layoutSVGContainer.sty
le()->visibility() == VISIBLE) { | 60 if (m_layoutSVGContainer.style()->outlineWidth() && m_layoutSVGContainer.sty
le()->visibility() == EVisibility::Visible) { |
61 PaintInfo outlinePaintInfo(paintInfoBeforeFiltering); | 61 PaintInfo outlinePaintInfo(paintInfoBeforeFiltering); |
62 outlinePaintInfo.phase = PaintPhaseSelfOutlineOnly; | 62 outlinePaintInfo.phase = PaintPhaseSelfOutlineOnly; |
63 ObjectPainter(m_layoutSVGContainer).paintOutline(outlinePaintInfo, Layou
tPoint(boundingBox.location())); | 63 ObjectPainter(m_layoutSVGContainer).paintOutline(outlinePaintInfo, Layou
tPoint(boundingBox.location())); |
64 } | 64 } |
65 | 65 |
66 if (paintInfoBeforeFiltering.isPrinting()) | 66 if (paintInfoBeforeFiltering.isPrinting()) |
67 ObjectPainter(m_layoutSVGContainer).addPDFURLRectIfNeeded(paintInfoBefor
eFiltering, LayoutPoint()); | 67 ObjectPainter(m_layoutSVGContainer).addPDFURLRectIfNeeded(paintInfoBefor
eFiltering, LayoutPoint()); |
68 } | 68 } |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
OLD | NEW |