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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe stAction) final; | 123 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe stAction) final; |
| 124 | 124 |
| 125 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; } | 125 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; } |
| 126 FloatRect calculateObjectBoundingBox() const; | 126 FloatRect calculateObjectBoundingBox() const; |
| 127 FloatRect calculateStrokeBoundingBox() const; | 127 FloatRect calculateStrokeBoundingBox() const; |
| 128 void updatePaintInvalidationBoundingBox(); | 128 void updatePaintInvalidationBoundingBox(); |
| 129 void updateLocalTransform(); | 129 void updateLocalTransform(); |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 OwnPtr<AffineTransform> m_localTransform; | 132 OwnPtr<AffineTransform> m_localTransform; |
| 133 // TODO(fmalita): the Path is now cached in SVGPath; while this additional c ache is just a | |
|
fs
2015/10/30 09:48:34
When (if) we manage to turn 'd' into a property we
| |
| 134 // shallow copy, it certainly has a complexity/state management cost (plus a llocation & storage | |
| 135 // overhead) - so we should look into removing it. | |
| 133 OwnPtr<Path> m_path; | 136 OwnPtr<Path> m_path; |
| 134 mutable OwnPtr<LayoutSVGShapeRareData> m_rareData; | 137 mutable OwnPtr<LayoutSVGShapeRareData> m_rareData; |
| 135 | 138 |
| 136 bool m_needsBoundariesUpdate : 1; | 139 bool m_needsBoundariesUpdate : 1; |
| 137 bool m_needsShapeUpdate : 1; | 140 bool m_needsShapeUpdate : 1; |
| 138 bool m_needsTransformUpdate : 1; | 141 bool m_needsTransformUpdate : 1; |
| 139 }; | 142 }; |
| 140 | 143 |
| 141 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); | 144 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); |
| 142 | 145 |
| 143 } | 146 } |
| 144 | 147 |
| 145 #endif | 148 #endif |
| OLD | NEW |