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

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

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/SVGClipPainter.h" 6 #include "core/paint/SVGClipPainter.h"
7 7
8 #include "core/dom/ElementTraversal.h" 8 #include "core/dom/ElementTraversal.h"
9 #include "core/layout/svg/LayoutSVGResourceClipper.h" 9 #include "core/layout/svg/LayoutSVGResourceClipper.h"
10 #include "core/layout/svg/SVGResources.h" 10 #include "core/layout/svg/SVGResources.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void SVGClipPainter::drawClipMaskContent(GraphicsContext* context, const LayoutO bject& layoutObject, const FloatRect& targetBoundingBox, const FloatRect& target PaintInvalidationRect) 127 void SVGClipPainter::drawClipMaskContent(GraphicsContext* context, const LayoutO bject& layoutObject, const FloatRect& targetBoundingBox, const FloatRect& target PaintInvalidationRect)
128 { 128 {
129 ASSERT(context); 129 ASSERT(context);
130 130
131 AffineTransform contentTransformation; 131 AffineTransform contentTransformation;
132 RefPtr<const SkPicture> clipContentPicture = m_clip.createContentPicture(con tentTransformation, targetBoundingBox, context); 132 RefPtr<const SkPicture> clipContentPicture = m_clip.createContentPicture(con tentTransformation, targetBoundingBox, context);
133 133
134 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, layout Object, DisplayItem::SVGClip)) 134 if (LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(*context, layout Object, DisplayItem::SVGClip))
135 return; 135 return;
136 136
137 LayoutObjectDrawingRecorder drawingRecorder(*context, layoutObject, DisplayI tem::SVGClip, targetPaintInvalidationRect); 137 LayoutObjectDrawingRecorder drawingRecorder(*context, layoutObject, DisplayI tem::SVGClip, LayoutRect(enclosingIntRect(targetPaintInvalidationRect)));
jbroman 2015/08/26 21:45:08 ditto
chrishtr 2015/08/26 22:32:21 Done.
138 context->save(); 138 context->save();
139 context->concatCTM(contentTransformation); 139 context->concatCTM(contentTransformation);
140 context->drawPicture(clipContentPicture.get()); 140 context->drawPicture(clipContentPicture.get());
141 context->restore(); 141 context->restore();
142 } 142 }
143 143
144 } 144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698