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

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

Issue 1545713003: Add StylePath and use it to store 'd' in ComputedStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2015->2016; Remove unnecessary explicit. Created 4 years, 11 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/SVGPathByteStream.h ('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) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 DEFINE_NODE_FACTORY(SVGPathElement) 69 DEFINE_NODE_FACTORY(SVGPathElement)
70 70
71 Path SVGPathElement::asPath() const 71 Path SVGPathElement::asPath() const
72 { 72 {
73 if (layoutObject()) { 73 if (layoutObject()) {
74 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle() ; 74 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle() ;
75 return svgStyle.d()->path(); 75 return svgStyle.d()->path();
76 } 76 }
77 77
78 return m_path->currentValue()->pathValue()->path(); 78 return m_path->currentValue()->pathValue()->cachedPath()->path();
79 } 79 }
80 80
81 const SVGPathByteStream& SVGPathElement::pathByteStream() const 81 const SVGPathByteStream& SVGPathElement::pathByteStream() const
82 { 82 {
83 if (layoutObject()) { 83 if (layoutObject()) {
84 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle() ; 84 const SVGComputedStyle& svgStyle = layoutObject()->styleRef().svgStyle() ;
85 return svgStyle.d()->byteStream(); 85 return svgStyle.d()->byteStream();
86 } 86 }
87 87
88 return m_path->currentValue()->byteStream(); 88 return m_path->currentValue()->byteStream();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return InsertionDone; 177 return InsertionDone;
178 } 178 }
179 179
180 void SVGPathElement::removedFrom(ContainerNode* rootParent) 180 void SVGPathElement::removedFrom(ContainerNode* rootParent)
181 { 181 {
182 SVGGeometryElement::removedFrom(rootParent); 182 SVGGeometryElement::removedFrom(rootParent);
183 invalidateMPathDependencies(); 183 invalidateMPathDependencies();
184 } 184 }
185 185
186 } // namespace blink 186 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathByteStream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698