OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> | 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 } | 141 } |
142 | 142 |
143 void SVGMaskElement::childrenChanged(const ChildrenChange& change) | 143 void SVGMaskElement::childrenChanged(const ChildrenChange& change) |
144 { | 144 { |
145 SVGElement::childrenChanged(change); | 145 SVGElement::childrenChanged(change); |
146 | 146 |
147 if (change.byParser) | 147 if (change.byParser) |
148 return; | 148 return; |
149 | 149 |
150 if (LayoutObject* object = layoutObject()) | 150 if (LayoutObject* object = layoutObject()) |
151 object->setNeedsLayoutAndFullPaintInvalidation(); | 151 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason:
:ChildChanged); |
152 } | 152 } |
153 | 153 |
154 LayoutObject* SVGMaskElement::createLayoutObject(const LayoutStyle&) | 154 LayoutObject* SVGMaskElement::createLayoutObject(const LayoutStyle&) |
155 { | 155 { |
156 return new LayoutSVGResourceMasker(this); | 156 return new LayoutSVGResourceMasker(this); |
157 } | 157 } |
158 | 158 |
159 bool SVGMaskElement::selfHasRelativeLengths() const | 159 bool SVGMaskElement::selfHasRelativeLengths() const |
160 { | 160 { |
161 return m_x->currentValue()->isRelative() | 161 return m_x->currentValue()->isRelative() |
162 || m_y->currentValue()->isRelative() | 162 || m_y->currentValue()->isRelative() |
163 || m_width->currentValue()->isRelative() | 163 || m_width->currentValue()->isRelative() |
164 || m_height->currentValue()->isRelative(); | 164 || m_height->currentValue()->isRelative(); |
165 } | 165 } |
166 | 166 |
167 } // namespace blink | 167 } // namespace blink |
OLD | NEW |