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

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

Issue 2713673005: client-goodbye
Patch Set: Created 3 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
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/SVGShapePainter.h" 5 #include "core/paint/SVGShapePainter.h"
6 6
7 #include "core/layout/svg/LayoutSVGResourceMarker.h" 7 #include "core/layout/svg/LayoutSVGResourceMarker.h"
8 #include "core/layout/svg/LayoutSVGShape.h" 8 #include "core/layout/svg/LayoutSVGShape.h"
9 #include "core/layout/svg/SVGLayoutSupport.h" 9 #include "core/layout/svg/SVGLayoutSupport.h"
10 #include "core/layout/svg/SVGMarkerData.h" 10 #include "core/layout/svg/SVGMarkerData.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 } 234 }
235 235
236 void SVGShapePainter::paintMarker(const PaintInfo& paintInfo, 236 void SVGShapePainter::paintMarker(const PaintInfo& paintInfo,
237 const LayoutSVGResourceMarker& marker, 237 const LayoutSVGResourceMarker& marker,
238 const MarkerPosition& position, 238 const MarkerPosition& position,
239 float strokeWidth) { 239 float strokeWidth) {
240 if (!marker.shouldPaint()) 240 if (!marker.shouldPaint())
241 return; 241 return;
242 242
243 TransformRecorder transformRecorder( 243 TransformRecorder transformRecorder(
244 paintInfo.context, marker, 244 paintInfo.context,
245 marker.markerTransformation(position.origin, position.angle, 245 marker.markerTransformation(position.origin, position.angle, strokeWidth),
246 strokeWidth)); 246 marker.visualRect(), marker.debugName(),
247 marker.paintedOutputOfObjectHasNoEffectRegardlessOfSize());
247 Optional<FloatClipRecorder> clipRecorder; 248 Optional<FloatClipRecorder> clipRecorder;
248 if (SVGLayoutSupport::isOverflowHidden(&marker)) 249 if (SVGLayoutSupport::isOverflowHidden(&marker)) {
249 clipRecorder.emplace(paintInfo.context, marker, paintInfo.phase, 250 clipRecorder.emplace(
250 marker.viewport()); 251 paintInfo.context, paintInfo.phase, marker.viewport(),
252 marker.visualRect(), marker.debugName(),
253 marker.paintedOutputOfObjectHasNoEffectRegardlessOfSize());
254 }
251 SVGContainerPainter(marker).paint(paintInfo); 255 SVGContainerPainter(marker).paint(paintInfo);
252 } 256 }
253 257
254 } // namespace blink 258 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.h ('k') | third_party/WebKit/Source/core/paint/ScrollRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698