| 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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2006 Apple Computer, Inc | 5 * Copyright (C) 2006 Apple Computer, Inc |
| 6 * Copyright (C) 2009 Google, Inc. | 6 * Copyright (C) 2009 Google, Inc. |
| 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> | 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> |
| 8 * Copyright (C) 2011 University of Szeged | 8 * Copyright (C) 2011 University of Szeged |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 class LayoutSVGPath final : public LayoutSVGShape { | 33 class LayoutSVGPath final : public LayoutSVGShape { |
| 34 public: | 34 public: |
| 35 explicit LayoutSVGPath(SVGGeometryElement*); | 35 explicit LayoutSVGPath(SVGGeometryElement*); |
| 36 ~LayoutSVGPath() override; | 36 ~LayoutSVGPath() override; |
| 37 | 37 |
| 38 const Vector<MarkerPosition>* markerPositions() const override { | 38 const Vector<MarkerPosition>* markerPositions() const override { |
| 39 return &m_markerPositions; | 39 return &m_markerPositions; |
| 40 } | 40 } |
| 41 | 41 |
| 42 const char* name() const override { return "LayoutSVGPath"; } | 42 const char* name() const override { return "LayoutSVGPath"; } |
| 43 char objectSize() const override { return sizeof(this); } |
| 44 char approximateHeapMemoryUsage() const override { |
| 45 int memory = LayoutSVGShape::approximateHeapMemoryUsage(); |
| 46 // TODO(pdr): Include memory from m_markerPositions. |
| 47 return memory; |
| 48 } |
| 43 | 49 |
| 44 private: | 50 private: |
| 45 void updateShapeFromElement() override; | 51 void updateShapeFromElement() override; |
| 46 FloatRect hitTestStrokeBoundingBox() const override; | 52 FloatRect hitTestStrokeBoundingBox() const override; |
| 47 FloatRect calculateUpdatedStrokeBoundingBox() const; | 53 FloatRect calculateUpdatedStrokeBoundingBox() const; |
| 48 | 54 |
| 49 FloatRect markerRect(float strokeWidth) const; | 55 FloatRect markerRect(float strokeWidth) const; |
| 50 bool shouldGenerateMarkerPositions() const; | 56 bool shouldGenerateMarkerPositions() const; |
| 51 void processMarkerPositions(); | 57 void processMarkerPositions(); |
| 52 | 58 |
| 53 Vector<MarkerPosition> m_markerPositions; | 59 Vector<MarkerPosition> m_markerPositions; |
| 54 }; | 60 }; |
| 55 | 61 |
| 56 } // namespace blink | 62 } // namespace blink |
| 57 | 63 |
| 58 #endif | 64 #endif |
| OLD | NEW |