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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGSVGElement.h

Issue 1827793003: Support currentScale for embedded SVG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Align with review comments Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2014 Google, Inc. 4 * Copyright (C) 2014 Google, Inc.
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 InsertionNotificationRequest insertedInto(ContainerNode*) override; 132 InsertionNotificationRequest insertedInto(ContainerNode*) override;
133 void removedFrom(ContainerNode*) override; 133 void removedFrom(ContainerNode*) override;
134 134
135 void svgAttributeChanged(const QualifiedName&) override; 135 void svgAttributeChanged(const QualifiedName&) override;
136 136
137 bool selfHasRelativeLengths() const override; 137 bool selfHasRelativeLengths() const override;
138 138
139 void inheritViewAttributes(SVGViewElement*); 139 void inheritViewAttributes(SVGViewElement*);
140 140
141 void updateCurrentTranslate(); 141 void updateUserTransform();
142 142
143 void finishParsingChildren() override; 143 void finishParsingChildren() override;
144 144
145 enum CheckIntersectionOrEnclosure { 145 enum CheckIntersectionOrEnclosure {
146 CheckIntersection, 146 CheckIntersection,
147 CheckEnclosure 147 CheckEnclosure
148 }; 148 };
149 149
150 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check IntersectionOrEnclosure) const; 150 bool checkIntersectionOrEnclosure(const SVGElement&, const FloatRect&, Check IntersectionOrEnclosure) const;
151 PassRefPtrWillBeRawPtr<StaticNodeList> collectIntersectionOrEnclosureList(co nst FloatRect&, SVGElement*, CheckIntersectionOrEnclosure) const; 151 PassRefPtrWillBeRawPtr<StaticNodeList> collectIntersectionOrEnclosureList(co nst FloatRect&, SVGElement*, CheckIntersectionOrEnclosure) const;
152 152
153 RefPtrWillBeMember<SVGAnimatedLength> m_x; 153 RefPtrWillBeMember<SVGAnimatedLength> m_x;
154 RefPtrWillBeMember<SVGAnimatedLength> m_y; 154 RefPtrWillBeMember<SVGAnimatedLength> m_y;
155 RefPtrWillBeMember<SVGAnimatedLength> m_width; 155 RefPtrWillBeMember<SVGAnimatedLength> m_width;
156 RefPtrWillBeMember<SVGAnimatedLength> m_height; 156 RefPtrWillBeMember<SVGAnimatedLength> m_height;
157 157
158 AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const ov erride; 158 AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const ov erride;
159 159
160 bool m_useCurrentView; 160 bool m_useCurrentView;
161 RefPtrWillBeMember<SMILTimeContainer> m_timeContainer; 161 RefPtrWillBeMember<SMILTimeContainer> m_timeContainer;
162 RefPtrWillBeMember<SVGPoint> m_translation; 162 RefPtrWillBeMember<SVGPoint> m_translation;
163 RefPtrWillBeMember<SVGViewSpec> m_viewSpec; 163 RefPtrWillBeMember<SVGViewSpec> m_viewSpec;
164 float m_currentScale;
164 165
165 friend class SVGCurrentTranslateTearOff; 166 friend class SVGCurrentTranslateTearOff;
166 }; 167 };
167 168
168 } // namespace blink 169 } // namespace blink
169 170
170 #endif // SVGSVGElement_h 171 #endif // SVGSVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.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