| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 void LayoutSVGShape::paint(const PaintInfo& paintInfo, | 239 void LayoutSVGShape::paint(const PaintInfo& paintInfo, |
| 240 const LayoutPoint&) const { | 240 const LayoutPoint&) const { |
| 241 SVGShapePainter(*this).paint(paintInfo); | 241 SVGShapePainter(*this).paint(paintInfo); |
| 242 } | 242 } |
| 243 | 243 |
| 244 // This method is called from inside paintOutline() since we call paintOutline() | 244 // This method is called from inside paintOutline() since we call paintOutline() |
| 245 // while transformed to our coord system, return local coords | 245 // while transformed to our coord system, return local coords |
| 246 void LayoutSVGShape::addOutlineRects(Vector<LayoutRect>& rects, | 246 void LayoutSVGShape::addOutlineRects(Vector<LayoutRect>& rects, |
| 247 const LayoutPoint&, | 247 const LayoutPoint&, |
| 248 IncludeBlockVisualOverflowOrNot) const { | 248 IncludeBlockVisualOverflowOrNot) const { |
| 249 rects.append(LayoutRect(visualRectInLocalSVGCoordinates())); | 249 rects.push_back(LayoutRect(visualRectInLocalSVGCoordinates())); |
| 250 } | 250 } |
| 251 | 251 |
| 252 bool LayoutSVGShape::nodeAtFloatPoint(HitTestResult& result, | 252 bool LayoutSVGShape::nodeAtFloatPoint(HitTestResult& result, |
| 253 const FloatPoint& pointInParent, | 253 const FloatPoint& pointInParent, |
| 254 HitTestAction hitTestAction) { | 254 HitTestAction hitTestAction) { |
| 255 // We only draw in the foreground phase, so we only hit-test then. | 255 // We only draw in the foreground phase, so we only hit-test then. |
| 256 if (hitTestAction != HitTestForeground) | 256 if (hitTestAction != HitTestForeground) |
| 257 return false; | 257 return false; |
| 258 | 258 |
| 259 FloatPoint localPoint; | 259 FloatPoint localPoint; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 return lengthContext.valueForLength(style()->svgStyle().strokeWidth()); | 330 return lengthContext.valueForLength(style()->svgStyle().strokeWidth()); |
| 331 } | 331 } |
| 332 | 332 |
| 333 LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const { | 333 LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const { |
| 334 if (!m_rareData) | 334 if (!m_rareData) |
| 335 m_rareData = WTF::makeUnique<LayoutSVGShapeRareData>(); | 335 m_rareData = WTF::makeUnique<LayoutSVGShapeRareData>(); |
| 336 return *m_rareData.get(); | 336 return *m_rareData.get(); |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace blink | 339 } // namespace blink |
| OLD | NEW |