| 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/SVGRootPainter.h" | 5 #include "core/paint/SVGRootPainter.h" |
| 6 | 6 |
| 7 #include "core/layout/svg/LayoutSVGRoot.h" | 7 #include "core/layout/svg/LayoutSVGRoot.h" |
| 8 #include "core/layout/svg/SVGLayoutSupport.h" | 8 #include "core/layout/svg/SVGLayoutSupport.h" |
| 9 #include "core/paint/BoxClipper.h" | 9 #include "core/paint/BoxClipper.h" |
| 10 #include "core/paint/BoxPainter.h" | 10 #include "core/paint/BoxPainter.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 transformToPixelSnappedBorderBox(paintOffset); | 67 transformToPixelSnappedBorderBox(paintOffset); |
| 68 paintInfoBeforeFiltering.updateCullRect(transformToBorderBox); | 68 paintInfoBeforeFiltering.updateCullRect(transformToBorderBox); |
| 69 SVGTransformContext transformContext(paintInfoBeforeFiltering.context, | 69 SVGTransformContext transformContext(paintInfoBeforeFiltering.context, |
| 70 m_layoutSVGRoot, transformToBorderBox); | 70 m_layoutSVGRoot, transformToBorderBox); |
| 71 | 71 |
| 72 SVGPaintContext paintContext(m_layoutSVGRoot, paintInfoBeforeFiltering); | 72 SVGPaintContext paintContext(m_layoutSVGRoot, paintInfoBeforeFiltering); |
| 73 if (paintContext.paintInfo().phase == PaintPhaseForeground && | 73 if (paintContext.paintInfo().phase == PaintPhaseForeground && |
| 74 !paintContext.applyClipMaskAndFilterIfNecessary()) | 74 !paintContext.applyClipMaskAndFilterIfNecessary()) |
| 75 return; | 75 return; |
| 76 | 76 |
| 77 BoxPainter(m_layoutSVGRoot).paint(paintContext.paintInfo(), LayoutPoint()); | 77 BoxPainter(m_layoutSVGRoot) |
| 78 .paintChildren(paintContext.paintInfo(), LayoutPoint()); |
| 78 | 79 |
| 79 PaintTiming& timing = | 80 PaintTiming& timing = |
| 80 PaintTiming::from(m_layoutSVGRoot.node()->document().topDocument()); | 81 PaintTiming::from(m_layoutSVGRoot.node()->document().topDocument()); |
| 81 timing.markFirstContentfulPaint(); | 82 timing.markFirstContentfulPaint(); |
| 82 } | 83 } |
| 83 | 84 |
| 84 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |