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

Side by Side Diff: Source/core/svg/SVGMarkerElement.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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 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) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 118 }
119 119
120 void SVGMarkerElement::childrenChanged(const ChildrenChange& change) 120 void SVGMarkerElement::childrenChanged(const ChildrenChange& change)
121 { 121 {
122 SVGElement::childrenChanged(change); 122 SVGElement::childrenChanged(change);
123 123
124 if (change.byParser) 124 if (change.byParser)
125 return; 125 return;
126 126
127 if (LayoutObject* object = layoutObject()) 127 if (LayoutObject* object = layoutObject())
128 object->setNeedsLayoutAndFullPaintInvalidation(); 128 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason: :ChildChanged);
129 } 129 }
130 130
131 void SVGMarkerElement::setOrientToAuto() 131 void SVGMarkerElement::setOrientToAuto()
132 { 132 {
133 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); 133 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto);
134 invalidateSVGAttributes(); 134 invalidateSVGAttributes();
135 svgAttributeChanged(SVGNames::orientAttr); 135 svgAttributeChanged(SVGNames::orientAttr);
136 } 136 }
137 137
138 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle) 138 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle)
(...skipping 12 matching lines...) Expand all
151 151
152 bool SVGMarkerElement::selfHasRelativeLengths() const 152 bool SVGMarkerElement::selfHasRelativeLengths() const
153 { 153 {
154 return m_refX->currentValue()->isRelative() 154 return m_refX->currentValue()->isRelative()
155 || m_refY->currentValue()->isRelative() 155 || m_refY->currentValue()->isRelative()
156 || m_markerWidth->currentValue()->isRelative() 156 || m_markerWidth->currentValue()->isRelative()
157 || m_markerHeight->currentValue()->isRelative(); 157 || m_markerHeight->currentValue()->isRelative();
158 } 158 }
159 159
160 } // namespace blink 160 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698