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

Side by Side Diff: Source/core/rendering/svg/RenderSVGShape.cpp

Issue 711493004: Remove unnecessary paintContainer parameter from addFocusRingRects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
10 * Copyright (C) 2011 University of Szeged 10 * Copyright (C) 2011 University of Szeged
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return toSVGGraphicsElement(element())->getScreenCTM(SVGGraphicsElement::Dis allowStyleUpdate); 154 return toSVGGraphicsElement(element())->getScreenCTM(SVGGraphicsElement::Dis allowStyleUpdate);
155 } 155 }
156 156
157 void RenderSVGShape::paint(PaintInfo& paintInfo, const LayoutPoint&) 157 void RenderSVGShape::paint(PaintInfo& paintInfo, const LayoutPoint&)
158 { 158 {
159 SVGShapePainter(*this).paint(paintInfo); 159 SVGShapePainter(*this).paint(paintInfo);
160 } 160 }
161 161
162 // This method is called from inside paintOutline() since we call paintOutline() 162 // This method is called from inside paintOutline() since we call paintOutline()
163 // while transformed to our coord system, return local coords 163 // while transformed to our coord system, return local coords
164 void RenderSVGShape::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPo int&, const RenderLayerModelObject*) const 164 void RenderSVGShape::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPo int&) const
165 { 165 {
166 LayoutRect rect = LayoutRect(paintInvalidationRectInLocalCoordinates()); 166 LayoutRect rect = LayoutRect(paintInvalidationRectInLocalCoordinates());
167 if (!rect.isEmpty()) 167 if (!rect.isEmpty())
168 rects.append(rect); 168 rects.append(rect);
169 } 169 }
170 170
171 bool RenderSVGShape::nodeAtFloatPoint(const HitTestRequest& request, HitTestResu lt& result, const FloatPoint& pointInParent, HitTestAction hitTestAction) 171 bool RenderSVGShape::nodeAtFloatPoint(const HitTestRequest& request, HitTestResu lt& result, const FloatPoint& pointInParent, HitTestAction hitTestAction)
172 { 172 {
173 // We only draw in the foreground phase, so we only hit-test then. 173 // We only draw in the foreground phase, so we only hit-test then.
174 if (hitTestAction != HitTestForeground) 174 if (hitTestAction != HitTestForeground)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 bool RenderSVGShape::hasSmoothStroke() const 249 bool RenderSVGShape::hasSmoothStroke() const
250 { 250 {
251 const SVGRenderStyle& svgStyle = style()->svgStyle(); 251 const SVGRenderStyle& svgStyle = style()->svgStyle();
252 return svgStyle.strokeDashArray()->isEmpty() 252 return svgStyle.strokeDashArray()->isEmpty()
253 && svgStyle.strokeMiterLimit() == SVGRenderStyle::initialStrokeMiterLimi t() 253 && svgStyle.strokeMiterLimit() == SVGRenderStyle::initialStrokeMiterLimi t()
254 && svgStyle.joinStyle() == SVGRenderStyle::initialJoinStyle() 254 && svgStyle.joinStyle() == SVGRenderStyle::initialJoinStyle()
255 && svgStyle.capStyle() == SVGRenderStyle::initialCapStyle(); 255 && svgStyle.capStyle() == SVGRenderStyle::initialCapStyle();
256 } 256 }
257 257
258 } 258 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698