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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/SVGPatternElement.h ('k') | Source/core/svg/SVGRadialGradientElement.h » ('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 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 renderer->invalidateCacheAndMarkForLayout(); 113 renderer->invalidateCacheAndMarkForLayout();
114 } 114 }
115 115
116 void SVGPatternElement::childrenChanged(const ChildrenChange& change) 116 void SVGPatternElement::childrenChanged(const ChildrenChange& change)
117 { 117 {
118 SVGElement::childrenChanged(change); 118 SVGElement::childrenChanged(change);
119 119
120 if (change.byParser) 120 if (change.byParser)
121 return; 121 return;
122 122
123 if (RenderObject* object = renderer()) 123 if (LayoutObject* object = renderer())
124 object->setNeedsLayoutAndFullPaintInvalidation(); 124 object->setNeedsLayoutAndFullPaintInvalidation();
125 } 125 }
126 126
127 RenderObject* SVGPatternElement::createRenderer(const RenderStyle&) 127 LayoutObject* SVGPatternElement::createRenderer(const RenderStyle&)
128 { 128 {
129 return new RenderSVGResourcePattern(this); 129 return new RenderSVGResourcePattern(this);
130 } 130 }
131 131
132 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib utes& attributes) 132 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib utes& attributes)
133 { 133 {
134 if (!attributes.hasX() && element->x()->isSpecified()) 134 if (!attributes.hasX() && element->x()->isSpecified())
135 attributes.setX(element->x()->currentValue()); 135 attributes.setX(element->x()->currentValue());
136 136
137 if (!attributes.hasY() && element->y()->isSpecified()) 137 if (!attributes.hasY() && element->y()->isSpecified())
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 bool SVGPatternElement::selfHasRelativeLengths() const 200 bool SVGPatternElement::selfHasRelativeLengths() const
201 { 201 {
202 return m_x->currentValue()->isRelative() 202 return m_x->currentValue()->isRelative()
203 || m_y->currentValue()->isRelative() 203 || m_y->currentValue()->isRelative()
204 || m_width->currentValue()->isRelative() 204 || m_width->currentValue()->isRelative()
205 || m_height->currentValue()->isRelative(); 205 || m_height->currentValue()->isRelative();
206 } 206 }
207 207
208 } // namespace blink 208 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.h ('k') | Source/core/svg/SVGRadialGradientElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698