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

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

Issue 2400783002: Reformat comments in core/layout/svg (Closed)
Patch Set: Created 4 years, 2 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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 return markerTransformation.mapRect(coordinates); 73 return markerTransformation.mapRect(coordinates);
74 } 74 }
75 75
76 const AffineTransform& LayoutSVGResourceMarker::localToSVGParentTransform() 76 const AffineTransform& LayoutSVGResourceMarker::localToSVGParentTransform()
77 const { 77 const {
78 m_localToParentTransform = 78 m_localToParentTransform =
79 AffineTransform::translation(m_viewport.x(), m_viewport.y()) * 79 AffineTransform::translation(m_viewport.x(), m_viewport.y()) *
80 viewportTransform(); 80 viewportTransform();
81 return m_localToParentTransform; 81 return m_localToParentTransform;
82 // If this class were ever given a localTransform(), then the above would read : 82 // If this class were ever given a localTransform(), then the above would
83 // read:
83 // return viewportTranslation * localTransform() * viewportTransform(); 84 // return viewportTranslation * localTransform() * viewportTransform();
84 } 85 }
85 86
86 FloatPoint LayoutSVGResourceMarker::referencePoint() const { 87 FloatPoint LayoutSVGResourceMarker::referencePoint() const {
87 SVGMarkerElement* marker = toSVGMarkerElement(element()); 88 SVGMarkerElement* marker = toSVGMarkerElement(element());
88 ASSERT(marker); 89 ASSERT(marker);
89 90
90 SVGLengthContext lengthContext(marker); 91 SVGLengthContext lengthContext(marker);
91 return FloatPoint(marker->refX()->currentValue()->value(lengthContext), 92 return FloatPoint(marker->refX()->currentValue()->value(lengthContext),
92 marker->refY()->currentValue()->value(lengthContext)); 93 marker->refY()->currentValue()->value(lengthContext));
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 164
164 SVGTransformChange LayoutSVGResourceMarker::calculateLocalTransform() { 165 SVGTransformChange LayoutSVGResourceMarker::calculateLocalTransform() {
165 // TODO(fs): Temporarily, needing a layout implies that the local transform 166 // TODO(fs): Temporarily, needing a layout implies that the local transform
166 // has changed. This should be updated to be more precise and factor in the 167 // has changed. This should be updated to be more precise and factor in the
167 // actual (relevant) changes to the computed user-space transform. 168 // actual (relevant) changes to the computed user-space transform.
168 return selfNeedsLayout() ? SVGTransformChange::Full 169 return selfNeedsLayout() ? SVGTransformChange::Full
169 : SVGTransformChange::None; 170 : SVGTransformChange::None;
170 } 171 }
171 172
172 } // namespace blink 173 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698