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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp

Issue 2685113002: Cleanup SVGElement::layoutObjectIsNeeded. (Closed)
Patch Set: Preserving behavior Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTSpanElement.cpp ('k') | no next file » | 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) 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com>
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 SVGTextContentElement::svgAttributeChanged(attrName); 105 SVGTextContentElement::svgAttributeChanged(attrName);
106 } 106 }
107 107
108 LayoutObject* SVGTextPathElement::createLayoutObject(const ComputedStyle&) { 108 LayoutObject* SVGTextPathElement::createLayoutObject(const ComputedStyle&) {
109 return new LayoutSVGTextPath(this); 109 return new LayoutSVGTextPath(this);
110 } 110 }
111 111
112 bool SVGTextPathElement::layoutObjectIsNeeded(const ComputedStyle& style) { 112 bool SVGTextPathElement::layoutObjectIsNeeded(const ComputedStyle& style) {
113 if (parentNode() && 113 if (parentNode() &&
114 (isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode()))) 114 (isSVGAElement(*parentNode()) || isSVGTextElement(*parentNode())))
115 return Element::layoutObjectIsNeeded(style); 115 return SVGElement::layoutObjectIsNeeded(style);
116 116
117 return false; 117 return false;
118 } 118 }
119 119
120 void SVGTextPathElement::buildPendingResource() { 120 void SVGTextPathElement::buildPendingResource() {
121 clearResourceReferences(); 121 clearResourceReferences();
122 if (!isConnected()) 122 if (!isConnected())
123 return; 123 return;
124 124
125 AtomicString id; 125 AtomicString id;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 if (rootParent->isConnected()) 157 if (rootParent->isConnected())
158 clearResourceReferences(); 158 clearResourceReferences();
159 } 159 }
160 160
161 bool SVGTextPathElement::selfHasRelativeLengths() const { 161 bool SVGTextPathElement::selfHasRelativeLengths() const {
162 return m_startOffset->currentValue()->isRelative() || 162 return m_startOffset->currentValue()->isRelative() ||
163 SVGTextContentElement::selfHasRelativeLengths(); 163 SVGTextContentElement::selfHasRelativeLengths();
164 } 164 }
165 165
166 } // namespace blink 166 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTSpanElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698