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

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

Issue 933953003: Move the remaining rendering/svg/RenderSVG* files to layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/SVGRootPainter.h ('k') | Source/core/rendering/svg/RenderSVGBlock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 5 #include "config.h"
6 #include "core/paint/SVGRootPainter.h" 6 #include "core/paint/SVGRootPainter.h"
7 7
8 #include "core/layout/PaintInfo.h" 8 #include "core/layout/PaintInfo.h"
9 #include "core/layout/svg/LayoutSVGRoot.h"
9 #include "core/layout/svg/SVGResources.h" 10 #include "core/layout/svg/SVGResources.h"
10 #include "core/layout/svg/SVGResourcesCache.h" 11 #include "core/layout/svg/SVGResourcesCache.h"
11 #include "core/paint/BoxPainter.h" 12 #include "core/paint/BoxPainter.h"
12 #include "core/paint/SVGPaintContext.h" 13 #include "core/paint/SVGPaintContext.h"
13 #include "core/paint/TransformRecorder.h" 14 #include "core/paint/TransformRecorder.h"
14 #include "core/rendering/svg/RenderSVGRoot.h"
15 #include "core/svg/SVGSVGElement.h" 15 #include "core/svg/SVGSVGElement.h"
16 #include "platform/graphics/paint/ClipRecorder.h" 16 #include "platform/graphics/paint/ClipRecorder.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 void SVGRootPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintO ffset) 20 void SVGRootPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintO ffset)
21 { 21 {
22 // An empty viewport disables rendering. 22 // An empty viewport disables rendering.
23 if (m_renderSVGRoot.pixelSnappedBorderBoxRect().isEmpty()) 23 if (m_renderSVGRoot.pixelSnappedBorderBoxRect().isEmpty())
24 return; 24 return;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 paintInfoBeforeFiltering.rect.move(-adjustedPaintOffset.x(), -adjustedPaintO ffset.y()); 57 paintInfoBeforeFiltering.rect.move(-adjustedPaintOffset.x(), -adjustedPaintO ffset.y());
58 58
59 SVGPaintContext paintContext(m_renderSVGRoot, paintInfoBeforeFiltering); 59 SVGPaintContext paintContext(m_renderSVGRoot, paintInfoBeforeFiltering);
60 if (paintContext.paintInfo().phase == PaintPhaseForeground && !paintContext. applyClipMaskAndFilterIfNecessary()) 60 if (paintContext.paintInfo().phase == PaintPhaseForeground && !paintContext. applyClipMaskAndFilterIfNecessary())
61 return; 61 return;
62 62
63 BoxPainter(m_renderSVGRoot).paint(paintContext.paintInfo(), LayoutPoint()); 63 BoxPainter(m_renderSVGRoot).paint(paintContext.paintInfo(), LayoutPoint());
64 } 64 }
65 65
66 } // namespace blink 66 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/SVGRootPainter.h ('k') | Source/core/rendering/svg/RenderSVGBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698