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

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

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 * 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return computedPathLength / authorPathLength; 96 return computedPathLength / authorPathLength;
97 } 97 }
98 98
99 Path SVGPathElement::asPath() const 99 Path SVGPathElement::asPath() const
100 { 100 {
101 return stylePath()->path(); 101 return stylePath()->path();
102 } 102 }
103 103
104 float SVGPathElement::getTotalLength() 104 float SVGPathElement::getTotalLength()
105 { 105 {
106 document().updateLayoutIgnorePendingStylesheets(); 106 document().updateStyleAndLayoutIgnorePendingStylesheets();
107 return SVGPathQuery(pathByteStream()).getTotalLength(); 107 return SVGPathQuery(pathByteStream()).getTotalLength();
108 } 108 }
109 109
110 SVGPointTearOff* SVGPathElement::getPointAtLength(float length) 110 SVGPointTearOff* SVGPathElement::getPointAtLength(float length)
111 { 111 {
112 document().updateLayoutIgnorePendingStylesheets(); 112 document().updateStyleAndLayoutIgnorePendingStylesheets();
113 FloatPoint point = SVGPathQuery(pathByteStream()).getPointAtLength(length); 113 FloatPoint point = SVGPathQuery(pathByteStream()).getPointAtLength(length);
114 return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnim Val); 114 return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnim Val);
115 } 115 }
116 116
117 unsigned SVGPathElement::getPathSegAtLength(float length) 117 unsigned SVGPathElement::getPathSegAtLength(float length)
118 { 118 {
119 document().updateLayoutIgnorePendingStylesheets(); 119 document().updateStyleAndLayoutIgnorePendingStylesheets();
120 return SVGPathQuery(pathByteStream()).getPathSegIndexAtLength(length); 120 return SVGPathQuery(pathByteStream()).getPathSegIndexAtLength(length);
121 } 121 }
122 122
123 bool SVGPathElement::isPresentationAttribute(const QualifiedName& attrName) cons t 123 bool SVGPathElement::isPresentationAttribute(const QualifiedName& attrName) cons t
124 { 124 {
125 if (attrName == SVGNames::dAttr) 125 if (attrName == SVGNames::dAttr)
126 return true; 126 return true;
127 return SVGGeometryElement::isPresentationAttribute(attrName); 127 return SVGGeometryElement::isPresentationAttribute(attrName);
128 } 128 }
129 129
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return InsertionDone; 201 return InsertionDone;
202 } 202 }
203 203
204 void SVGPathElement::removedFrom(ContainerNode* rootParent) 204 void SVGPathElement::removedFrom(ContainerNode* rootParent)
205 { 205 {
206 SVGGeometryElement::removedFrom(rootParent); 206 SVGGeometryElement::removedFrom(rootParent);
207 invalidateMPathDependencies(); 207 invalidateMPathDependencies();
208 } 208 }
209 209
210 } // namespace blink 210 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGGraphicsElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698