| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 return toSVGGraphicsElement(element())->getScreenCTM(SVGGraphicsElement::Dis
allowStyleUpdate); | 209 return toSVGGraphicsElement(element())->getScreenCTM(SVGGraphicsElement::Dis
allowStyleUpdate); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void LayoutSVGShape::paint(const PaintInfo& paintInfo, const LayoutPoint&) | 212 void LayoutSVGShape::paint(const PaintInfo& paintInfo, const LayoutPoint&) |
| 213 { | 213 { |
| 214 SVGShapePainter(*this).paint(paintInfo); | 214 SVGShapePainter(*this).paint(paintInfo); |
| 215 } | 215 } |
| 216 | 216 |
| 217 // This method is called from inside paintOutline() since we call paintOutline() | 217 // This method is called from inside paintOutline() since we call paintOutline() |
| 218 // while transformed to our coord system, return local coords | 218 // while transformed to our coord system, return local coords |
| 219 void LayoutSVGShape::addFocusRingRects(Vector<LayoutRect>& rects, const LayoutPo
int&) const | 219 void LayoutSVGShape::addOutlineRects(Vector<LayoutRect>& rects, const LayoutPoin
t&) const |
| 220 { | 220 { |
| 221 LayoutRect rect = LayoutRect(paintInvalidationRectInLocalCoordinates()); | 221 LayoutRect rect = LayoutRect(paintInvalidationRectInLocalCoordinates()); |
| 222 if (!rect.isEmpty()) | 222 if (!rect.isEmpty()) |
| 223 rects.append(rect); | 223 rects.append(rect); |
| 224 } | 224 } |
| 225 | 225 |
| 226 bool LayoutSVGShape::nodeAtFloatPoint(HitTestResult& result, const FloatPoint& p
ointInParent, HitTestAction hitTestAction) | 226 bool LayoutSVGShape::nodeAtFloatPoint(HitTestResult& result, const FloatPoint& p
ointInParent, HitTestAction hitTestAction) |
| 227 { | 227 { |
| 228 // We only draw in the foreground phase, so we only hit-test then. | 228 // We only draw in the foreground phase, so we only hit-test then. |
| 229 if (hitTestAction != HitTestForeground) | 229 if (hitTestAction != HitTestForeground) |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); | 268 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); |
| 269 } | 269 } |
| 270 | 270 |
| 271 float LayoutSVGShape::strokeWidth() const | 271 float LayoutSVGShape::strokeWidth() const |
| 272 { | 272 { |
| 273 SVGLengthContext lengthContext(element()); | 273 SVGLengthContext lengthContext(element()); |
| 274 return lengthContext.valueForLength(style()->svgStyle().strokeWidth()); | 274 return lengthContext.valueForLength(style()->svgStyle().strokeWidth()); |
| 275 } | 275 } |
| 276 | 276 |
| 277 } | 277 } |
| OLD | NEW |