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

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

Issue 2489893002: [SPv2] Track paint offset change (Closed)
Patch Set: - Created 4 years, 1 month 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"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ReplacedPainter.cpp ('k') | third_party/WebKit/Source/core/paint/TableRowPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698