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

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

Issue 977113003: Rename renderer() to layoutObject(). (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
« no previous file with comments | « Source/core/svg/SVGCircleElement.cpp ('k') | Source/core/svg/SVGElement.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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName) 50 void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName)
51 { 51 {
52 if (attrName != SVGNames::clipPathUnitsAttr) { 52 if (attrName != SVGNames::clipPathUnitsAttr) {
53 SVGGraphicsElement::svgAttributeChanged(attrName); 53 SVGGraphicsElement::svgAttributeChanged(attrName);
54 return; 54 return;
55 } 55 }
56 56
57 SVGElement::InvalidationGuard invalidationGuard(this); 57 SVGElement::InvalidationGuard invalidationGuard(this);
58 58
59 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->re nderer()); 59 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->la youtObject());
60 if (renderer) 60 if (renderer)
61 renderer->invalidateCacheAndMarkForLayout(); 61 renderer->invalidateCacheAndMarkForLayout();
62 } 62 }
63 63
64 void SVGClipPathElement::childrenChanged(const ChildrenChange& change) 64 void SVGClipPathElement::childrenChanged(const ChildrenChange& change)
65 { 65 {
66 SVGGraphicsElement::childrenChanged(change); 66 SVGGraphicsElement::childrenChanged(change);
67 67
68 if (change.byParser) 68 if (change.byParser)
69 return; 69 return;
70 70
71 if (LayoutObject* object = renderer()) 71 if (LayoutObject* object = layoutObject())
72 object->setNeedsLayoutAndFullPaintInvalidation(); 72 object->setNeedsLayoutAndFullPaintInvalidation();
73 } 73 }
74 74
75 LayoutObject* SVGClipPathElement::createLayoutObject(const LayoutStyle&) 75 LayoutObject* SVGClipPathElement::createLayoutObject(const LayoutStyle&)
76 { 76 {
77 return new LayoutSVGResourceClipper(this); 77 return new LayoutSVGResourceClipper(this);
78 } 78 }
79 79
80 } 80 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGCircleElement.cpp ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698