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

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

Issue 1118133003: Rename rendering in core/svg. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/SVGLineElement.cpp ('k') | Source/core/svg/SVGMarkerElement.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, 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) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 DEFINE_NODE_FACTORY(SVGLinearGradientElement) 64 DEFINE_NODE_FACTORY(SVGLinearGradientElement)
65 65
66 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName ) 66 void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName )
67 { 67 {
68 if (attrName == SVGNames::x1Attr || attrName == SVGNames::x2Attr 68 if (attrName == SVGNames::x1Attr || attrName == SVGNames::x2Attr
69 || attrName == SVGNames::y1Attr || attrName == SVGNames::y2Attr) { 69 || attrName == SVGNames::y1Attr || attrName == SVGNames::y2Attr) {
70 SVGElement::InvalidationGuard invalidationGuard(this); 70 SVGElement::InvalidationGuard invalidationGuard(this);
71 71
72 updateRelativeLengthsInformation(); 72 updateRelativeLengthsInformation();
73 73
74 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this ->layoutObject()); 74 LayoutSVGResourceContainer* layoutObject = toLayoutSVGResourceContainer( this->layoutObject());
75 if (renderer) 75 if (layoutObject)
76 renderer->invalidateCacheAndMarkForLayout(); 76 layoutObject->invalidateCacheAndMarkForLayout();
77 77
78 return; 78 return;
79 } 79 }
80 80
81 SVGGradientElement::svgAttributeChanged(attrName); 81 SVGGradientElement::svgAttributeChanged(attrName);
82 } 82 }
83 83
84 LayoutObject* SVGLinearGradientElement::createLayoutObject(const ComputedStyle&) 84 LayoutObject* SVGLinearGradientElement::createLayoutObject(const ComputedStyle&)
85 { 85 {
86 return new LayoutSVGResourceLinearGradient(this); 86 return new LayoutSVGResourceLinearGradient(this);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 bool SVGLinearGradientElement::selfHasRelativeLengths() const 161 bool SVGLinearGradientElement::selfHasRelativeLengths() const
162 { 162 {
163 return m_x1->currentValue()->isRelative() 163 return m_x1->currentValue()->isRelative()
164 || m_y1->currentValue()->isRelative() 164 || m_y1->currentValue()->isRelative()
165 || m_x2->currentValue()->isRelative() 165 || m_x2->currentValue()->isRelative()
166 || m_y2->currentValue()->isRelative(); 166 || m_y2->currentValue()->isRelative();
167 } 167 }
168 168
169 } // namespace blink 169 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLineElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698