OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |