Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: Source/core/svg/SVGMaskElement.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698