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

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

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 void SVGForeignObjectElement::svgAttributeChanged(const QualifiedName& attrName) 93 void SVGForeignObjectElement::svgAttributeChanged(const QualifiedName& attrName)
94 { 94 {
95 if (!isSupportedAttribute(attrName)) { 95 if (!isSupportedAttribute(attrName)) {
96 SVGGraphicsElement::svgAttributeChanged(attrName); 96 SVGGraphicsElement::svgAttributeChanged(attrName);
97 return; 97 return;
98 } 98 }
99 99
100 if (attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr) { 100 if (attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr) {
101 invalidateSVGPresentationAttributeStyle(); 101 invalidateSVGPresentationAttributeStyle();
102 setNeedsStyleRecalc(LocalStyleChange); 102 setNeedsStyleRecalc(StyleRecalcDueToSVGContainerSizeChange, LocalStyleCh ange);
103 } 103 }
104 104
105 SVGElement::InvalidationGuard invalidationGuard(this); 105 SVGElement::InvalidationGuard invalidationGuard(this);
106 106
107 bool isLengthAttribute = attrName == SVGNames::xAttr 107 bool isLengthAttribute = attrName == SVGNames::xAttr
108 || attrName == SVGNames::yAttr 108 || attrName == SVGNames::yAttr
109 || attrName == SVGNames::widthAttr 109 || attrName == SVGNames::widthAttr
110 || attrName == SVGNames::heightAttr; 110 || attrName == SVGNames::heightAttr;
111 111
112 if (isLengthAttribute) 112 if (isLengthAttribute)
(...skipping 28 matching lines...) Expand all
141 141
142 bool SVGForeignObjectElement::selfHasRelativeLengths() const 142 bool SVGForeignObjectElement::selfHasRelativeLengths() const
143 { 143 {
144 return m_x->currentValue()->isRelative() 144 return m_x->currentValue()->isRelative()
145 || m_y->currentValue()->isRelative() 145 || m_y->currentValue()->isRelative()
146 || m_width->currentValue()->isRelative() 146 || m_width->currentValue()->isRelative()
147 || m_height->currentValue()->isRelative(); 147 || m_height->currentValue()->isRelative();
148 } 148 }
149 149
150 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698