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

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: Ignore pageZoomFactor modification 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 PassRefPtrWillBeRawPtr<SVGRectTearOff> viewport() const; 58 PassRefPtrWillBeRawPtr<SVGRectTearOff> viewport() const;
59 59
60 bool useCurrentView() const { return m_useCurrentView; } 60 bool useCurrentView() const { return m_useCurrentView; }
61 SVGViewSpec* currentView(); 61 SVGViewSpec* currentView();
62 62
63 float intrinsicWidth() const; 63 float intrinsicWidth() const;
64 float intrinsicHeight() const; 64 float intrinsicHeight() const;
65 FloatSize currentViewportSize() const; 65 FloatSize currentViewportSize() const;
66 FloatRect currentViewBoxRect() const; 66 FloatRect currentViewBoxRect() const;
67 67
68 float currentScale() const; 68 float currentScale() const { return m_currentScale; }
fs 2016/03/31 10:53:04 Here we rely on the setter gating access and hence
Shanmuga Pandi 2016/03/31 11:53:35 Right!! Thanks for pointing out. Done
69 void setCurrentScale(float scale); 69 void setCurrentScale(float scale);
70 70
71 FloatPoint currentTranslate() { return m_translation->value(); } 71 FloatPoint currentTranslate() { return m_translation->value(); }
72 void setCurrentTranslate(const FloatPoint&); 72 void setCurrentTranslate(const FloatPoint&);
73 PassRefPtrWillBeRawPtr<SVGPointTearOff> currentTranslateFromJavascript(); 73 PassRefPtrWillBeRawPtr<SVGPointTearOff> currentTranslateFromJavascript();
74 74
75 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); } 75 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); }
76 76
77 void pauseAnimations(); 77 void pauseAnimations();
78 void unpauseAnimations(); 78 void unpauseAnimations();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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

Powered by Google App Engine
This is Rietveld 408576698