Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGRootPainter.cpp

Issue 2787173005: Some cleanup after https://codereview.chromium.org/2751433002 (Closed)
Patch Set: none Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/HTMLCanvasPainter.cpp ('k') | third_party/WebKit/Source/core/paint/SVGShapePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698