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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 FloatRect m_fillBoundingBox; | 106 FloatRect m_fillBoundingBox; |
107 FloatRect m_strokeBoundingBox; | 107 FloatRect m_strokeBoundingBox; |
108 LayoutSVGShapeRareData& ensureRareData() const; | 108 LayoutSVGShapeRareData& ensureRareData() const; |
109 | 109 |
110 private: | 110 private: |
111 // Hit-detection separated for the fill and the stroke | 111 // Hit-detection separated for the fill and the stroke |
112 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul
e fillRule = RULE_NONZERO); | 112 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul
e fillRule = RULE_NONZERO); |
113 bool strokeContains(const FloatPoint&, bool requiresStroke = true); | 113 bool strokeContains(const FloatPoint&, bool requiresStroke = true); |
114 | 114 |
115 const AffineTransform& localToSVGParentTransform() const final { return m_lo
calTransform; } | 115 const AffineTransform& localToSVGParentTransform() const final { return m_lo
calTransform; } |
116 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t*, | |
117 const PaintInvalidationState* = nullptr) const override; | |
118 | 116 |
119 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGShape || LayoutSVGModelObject::isOfType(type); } | 117 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGShape || LayoutSVGModelObject::isOfType(type); } |
120 void layout() final; | 118 void layout() final; |
121 void paint(const PaintInfo&, const LayoutPoint&) const final; | 119 void paint(const PaintInfo&, const LayoutPoint&) const final; |
122 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const final; | 120 void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additionalOffse
t, IncludeBlockVisualOverflowOrNot) const final; |
123 | 121 |
124 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe
stAction) final; | 122 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe
stAction) final; |
125 | 123 |
126 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; } | 124 FloatRect strokeBoundingBox() const final { return m_strokeBoundingBox; } |
127 FloatRect calculateObjectBoundingBox() const; | 125 FloatRect calculateObjectBoundingBox() const; |
(...skipping 12 matching lines...) Expand all Loading... |
140 bool m_needsBoundariesUpdate : 1; | 138 bool m_needsBoundariesUpdate : 1; |
141 bool m_needsShapeUpdate : 1; | 139 bool m_needsShapeUpdate : 1; |
142 bool m_needsTransformUpdate : 1; | 140 bool m_needsTransformUpdate : 1; |
143 }; | 141 }; |
144 | 142 |
145 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); | 143 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); |
146 | 144 |
147 } // namespace blink | 145 } // namespace blink |
148 | 146 |
149 #endif | 147 #endif |
OLD | NEW |