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

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: Rebase Created 5 years, 8 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
« no previous file with comments | « Source/core/svg/SVGGradientElement.cpp ('k') | Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 void SVGMarkerElement::childrenChanged(const ChildrenChange& change) 119 void SVGMarkerElement::childrenChanged(const ChildrenChange& change)
120 { 120 {
121 SVGElement::childrenChanged(change); 121 SVGElement::childrenChanged(change);
122 122
123 if (change.byParser) 123 if (change.byParser)
124 return; 124 return;
125 125
126 if (LayoutObject* object = layoutObject()) 126 if (LayoutObject* object = layoutObject())
127 object->setNeedsLayoutAndFullPaintInvalidation(); 127 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason: :ChildChanged);
128 } 128 }
129 129
130 void SVGMarkerElement::setOrientToAuto() 130 void SVGMarkerElement::setOrientToAuto()
131 { 131 {
132 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto); 132 m_orientAngle->baseValue()->orientType()->setEnumValue(SVGMarkerOrientAuto);
133 invalidateSVGAttributes(); 133 invalidateSVGAttributes();
134 svgAttributeChanged(SVGNames::orientAttr); 134 svgAttributeChanged(SVGNames::orientAttr);
135 } 135 }
136 136
137 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle) 137 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle)
(...skipping 12 matching lines...) Expand all
150 150
151 bool SVGMarkerElement::selfHasRelativeLengths() const 151 bool SVGMarkerElement::selfHasRelativeLengths() const
152 { 152 {
153 return m_refX->currentValue()->isRelative() 153 return m_refX->currentValue()->isRelative()
154 || m_refY->currentValue()->isRelative() 154 || m_refY->currentValue()->isRelative()
155 || m_markerWidth->currentValue()->isRelative() 155 || m_markerWidth->currentValue()->isRelative()
156 || m_markerHeight->currentValue()->isRelative(); 156 || m_markerHeight->currentValue()->isRelative();
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGradientElement.cpp ('k') | Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698