Chromium Code Reviews| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 | 76 |
| 77 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry ; } | 77 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry ; } |
| 78 virtual const Vector<FloatPoint>* zeroLengthLineCaps() const { return 0; } | 78 virtual const Vector<FloatPoint>* zeroLengthLineCaps() const { return 0; } |
| 79 | 79 |
| 80 virtual FloatRect objectBoundingBox() const override final { return m_fillBo undingBox; } | 80 virtual FloatRect objectBoundingBox() const override final { return m_fillBo undingBox; } |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 virtual void updateShapeFromElement(); | 83 virtual void updateShapeFromElement(); |
| 84 virtual bool shapeDependentStrokeContains(const FloatPoint&); | 84 virtual bool shapeDependentStrokeContains(const FloatPoint&); |
| 85 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst; | 85 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst; |
| 86 // Is the stroke "smooth"; that is, can we use simple geometry for hit testi ng | |
|
Erik Dahlström (inactive)
2014/12/03 15:16:35
That this has to be explained here indicates that
fs
2014/12/03 15:56:06
Maybe 'hasContinousStroke' instead? (and make it c
| |
| 87 // or should we fall back to letting Skia handle the hit testing? | |
| 86 bool hasSmoothStroke() const; | 88 bool hasSmoothStroke() const; |
| 87 | 89 |
| 88 // Give RenderSVGPath a hook for updating markers in updateShapeFromElement. | 90 // Give RenderSVGPath a hook for updating markers in updateShapeFromElement. |
| 89 virtual void processMarkerPositions() { }; | 91 virtual void processMarkerPositions() { }; |
| 90 | 92 |
| 91 FloatRect m_fillBoundingBox; | 93 FloatRect m_fillBoundingBox; |
| 92 FloatRect m_strokeBoundingBox; | 94 FloatRect m_strokeBoundingBox; |
| 93 | 95 |
| 94 private: | 96 private: |
| 95 // Hit-detection separated for the fill and the stroke | 97 // Hit-detection separated for the fill and the stroke |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 120 bool m_needsBoundariesUpdate : 1; | 122 bool m_needsBoundariesUpdate : 1; |
| 121 bool m_needsShapeUpdate : 1; | 123 bool m_needsShapeUpdate : 1; |
| 122 bool m_needsTransformUpdate : 1; | 124 bool m_needsTransformUpdate : 1; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); | 127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); |
| 126 | 128 |
| 127 } | 129 } |
| 128 | 130 |
| 129 #endif | 131 #endif |
| OLD | NEW |