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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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/SVGTextPathElement.h ('k') | Source/core/svg/SVGTitleElement.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) 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 return; 108 return;
109 } 109 }
110 110
111 if (attrName == SVGNames::startOffsetAttr) 111 if (attrName == SVGNames::startOffsetAttr)
112 updateRelativeLengthsInformation(); 112 updateRelativeLengthsInformation();
113 113
114 if (LayoutObject* object = layoutObject()) 114 if (LayoutObject* object = layoutObject())
115 markForLayoutAndParentResourceInvalidation(object); 115 markForLayoutAndParentResourceInvalidation(object);
116 } 116 }
117 117
118 LayoutObject* SVGTextPathElement::createLayoutObject(const LayoutStyle&) 118 LayoutObject* SVGTextPathElement::createLayoutObject(const ComputedStyle&)
119 { 119 {
120 return new LayoutSVGTextPath(this); 120 return new LayoutSVGTextPath(this);
121 } 121 }
122 122
123 bool SVGTextPathElement::layoutObjectIsNeeded(const LayoutStyle& style) 123 bool SVGTextPathElement::layoutObjectIsNeeded(const ComputedStyle& style)
124 { 124 {
125 if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*paren tNode()))) 125 if (parentNode() && (isSVGAElement(*parentNode()) || isSVGTextElement(*paren tNode())))
126 return Element::layoutObjectIsNeeded(style); 126 return Element::layoutObjectIsNeeded(style);
127 127
128 return false; 128 return false;
129 } 129 }
130 130
131 void SVGTextPathElement::buildPendingResource() 131 void SVGTextPathElement::buildPendingResource()
132 { 132 {
133 clearResourceReferences(); 133 clearResourceReferences();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 clearResourceReferences(); 166 clearResourceReferences();
167 } 167 }
168 168
169 bool SVGTextPathElement::selfHasRelativeLengths() const 169 bool SVGTextPathElement::selfHasRelativeLengths() const
170 { 170 {
171 return m_startOffset->currentValue()->isRelative() 171 return m_startOffset->currentValue()->isRelative()
172 || SVGTextContentElement::selfHasRelativeLengths(); 172 || SVGTextContentElement::selfHasRelativeLengths();
173 } 173 }
174 174
175 } // namespace blink 175 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPathElement.h ('k') | Source/core/svg/SVGTitleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698