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

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: Rebase 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
« no previous file with comments | « Source/core/rendering/svg/RenderSVGShape.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 return toSVGGraphicsElement(element())->getScreenCTM(SVGGraphicsElement::Dis allowStyleUpdate); 167 return toSVGGraphicsElement(element())->getScreenCTM(SVGGraphicsElement::Dis allowStyleUpdate);
168 } 168 }
169 169
170 void RenderSVGShape::paint(PaintInfo& paintInfo, const LayoutPoint&) 170 void RenderSVGShape::paint(PaintInfo& paintInfo, const LayoutPoint&)
171 { 171 {
172 SVGShapePainter(*this).paint(paintInfo); 172 SVGShapePainter(*this).paint(paintInfo);
173 } 173 }
174 174
175 // This method is called from inside paintOutline() since we call paintOutline() 175 // This method is called from inside paintOutline() since we call paintOutline()
176 // while transformed to our coord system, return local coords 176 // while transformed to our coord system, return local coords
177 void RenderSVGShape::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPo int&, const RenderLayerModelObject*) const 177 void RenderSVGShape::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPo int&) const
178 { 178 {
179 LayoutRect rect = LayoutRect(paintInvalidationRectInLocalCoordinates()); 179 LayoutRect rect = LayoutRect(paintInvalidationRectInLocalCoordinates());
180 if (!rect.isEmpty()) 180 if (!rect.isEmpty())
181 rects.append(rect); 181 rects.append(rect);
182 } 182 }
183 183
184 bool RenderSVGShape::nodeAtFloatPoint(const HitTestRequest& request, HitTestResu lt& result, const FloatPoint& pointInParent, HitTestAction hitTestAction) 184 bool RenderSVGShape::nodeAtFloatPoint(const HitTestRequest& request, HitTestResu lt& result, const FloatPoint& pointInParent, HitTestAction hitTestAction)
185 { 185 {
186 // We only draw in the foreground phase, so we only hit-test then. 186 // We only draw in the foreground phase, so we only hit-test then.
187 if (hitTestAction != HitTestForeground) 187 if (hitTestAction != HitTestForeground)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 bool RenderSVGShape::hasSmoothStroke() const 262 bool RenderSVGShape::hasSmoothStroke() const
263 { 263 {
264 const SVGRenderStyle& svgStyle = style()->svgStyle(); 264 const SVGRenderStyle& svgStyle = style()->svgStyle();
265 return svgStyle.strokeDashArray()->isEmpty() 265 return svgStyle.strokeDashArray()->isEmpty()
266 && svgStyle.strokeMiterLimit() == SVGRenderStyle::initialStrokeMiterLimi t() 266 && svgStyle.strokeMiterLimit() == SVGRenderStyle::initialStrokeMiterLimi t()
267 && svgStyle.joinStyle() == SVGRenderStyle::initialJoinStyle() 267 && svgStyle.joinStyle() == SVGRenderStyle::initialJoinStyle()
268 && svgStyle.capStyle() == SVGRenderStyle::initialCapStyle(); 268 && svgStyle.capStyle() == SVGRenderStyle::initialCapStyle();
269 } 269 }
270 270
271 } 271 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGShape.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698