OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 2 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 30 matching lines...) Expand all Loading... |
41 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
42 | 42 |
43 public: | 43 public: |
44 virtual Path asPath() const = 0; | 44 virtual Path asPath() const = 0; |
45 bool isPointInFill(SVGPointTearOff*) const; | 45 bool isPointInFill(SVGPointTearOff*) const; |
46 bool isPointInStroke(SVGPointTearOff*) const; | 46 bool isPointInStroke(SVGPointTearOff*) const; |
47 | 47 |
48 void toClipPath(Path&) const; | 48 void toClipPath(Path&) const; |
49 | 49 |
50 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 50 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 51 virtual float getTotalLength(); |
| 52 virtual SVGPointTearOff* getPointAtLength(float distance); |
51 | 53 |
52 protected: | 54 protected: |
53 SVGGeometryElement(const QualifiedName&, | 55 SVGGeometryElement(const QualifiedName&, |
54 Document&, | 56 Document&, |
55 ConstructionType = CreateSVGElement); | 57 ConstructionType = CreateSVGElement); |
56 | 58 |
57 private: | 59 private: |
58 bool isSVGGeometryElement() const final { return true; } | 60 bool isSVGGeometryElement() const final { return true; } |
59 }; | 61 }; |
60 | 62 |
61 inline bool isSVGGeometryElement(const SVGElement& element) { | 63 inline bool isSVGGeometryElement(const SVGElement& element) { |
62 return element.isSVGGeometryElement(); | 64 return element.isSVGGeometryElement(); |
63 } | 65 } |
64 | 66 |
65 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGeometryElement); | 67 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGeometryElement); |
66 | 68 |
67 } // namespace blink | 69 } // namespace blink |
68 | 70 |
69 #endif // SVGGeometryElement_h | 71 #endif // SVGGeometryElement_h |
OLD | NEW |