OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann |
3 * <zimmermann@kde.org> | 3 * <zimmermann@kde.org> |
4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 return new LayoutSVGResourceMarker(this); | 151 return new LayoutSVGResourceMarker(this); |
152 } | 152 } |
153 | 153 |
154 bool SVGMarkerElement::selfHasRelativeLengths() const { | 154 bool SVGMarkerElement::selfHasRelativeLengths() const { |
155 return m_refX->currentValue()->isRelative() || | 155 return m_refX->currentValue()->isRelative() || |
156 m_refY->currentValue()->isRelative() || | 156 m_refY->currentValue()->isRelative() || |
157 m_markerWidth->currentValue()->isRelative() || | 157 m_markerWidth->currentValue()->isRelative() || |
158 m_markerHeight->currentValue()->isRelative(); | 158 m_markerHeight->currentValue()->isRelative(); |
159 } | 159 } |
160 | 160 |
| 161 bool SVGMarkerElement::layoutObjectIsNeeded(const ComputedStyle&) { |
| 162 ContainerNode* parent = FlatTreeTraversal::parent(*this); |
| 163 return parent && parent->isSVGElement() && isValid(); |
| 164 } |
| 165 |
161 } // namespace blink | 166 } // namespace blink |
OLD | NEW |