| 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" |
| 11 #include "core/paint/ObjectPaintProperties.h" | 11 #include "core/paint/ObjectPaintProperties.h" |
| 12 #include "core/paint/PaintInfo.h" | 12 #include "core/paint/PaintInfo.h" |
| 13 #include "core/paint/PaintTiming.h" | 13 #include "core/paint/PaintTiming.h" |
| 14 #include "core/paint/SVGPaintContext.h" | 14 #include "core/paint/SVGPaintContext.h" |
| 15 #include "core/paint/TransformRecorder.h" | |
| 16 #include "core/svg/SVGSVGElement.h" | 15 #include "core/svg/SVGSVGElement.h" |
| 17 #include "wtf/Optional.h" | 16 #include "wtf/Optional.h" |
| 18 | 17 |
| 19 namespace blink { | 18 namespace blink { |
| 20 | 19 |
| 21 IntRect SVGRootPainter::pixelSnappedSize(const LayoutPoint& paintOffset) const { | 20 IntRect SVGRootPainter::pixelSnappedSize(const LayoutPoint& paintOffset) const { |
| 22 return pixelSnappedIntRect(paintOffset, m_layoutSVGRoot.size()); | 21 return pixelSnappedIntRect(paintOffset, m_layoutSVGRoot.size()); |
| 23 } | 22 } |
| 24 | 23 |
| 25 AffineTransform SVGRootPainter::transformToPixelSnappedBorderBox( | 24 AffineTransform SVGRootPainter::transformToPixelSnappedBorderBox( |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 71 |
| 73 BoxPainter(m_layoutSVGRoot) | 72 BoxPainter(m_layoutSVGRoot) |
| 74 .paintChildren(paintContext.paintInfo(), LayoutPoint()); | 73 .paintChildren(paintContext.paintInfo(), LayoutPoint()); |
| 75 | 74 |
| 76 PaintTiming& timing = | 75 PaintTiming& timing = |
| 77 PaintTiming::from(m_layoutSVGRoot.node()->document().topDocument()); | 76 PaintTiming::from(m_layoutSVGRoot.node()->document().topDocument()); |
| 78 timing.markFirstContentfulPaint(); | 77 timing.markFirstContentfulPaint(); |
| 79 } | 78 } |
| 80 | 79 |
| 81 } // namespace blink | 80 } // namespace blink |
| OLD | NEW |