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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/SVGSVGElement.h
diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.h b/third_party/WebKit/Source/core/svg/SVGSVGElement.h
index b9d053fa3fb58fe26652ecc9887f1211d5a3e9ec..076dd250434f236c1ee477013d6421e1d83298c3 100644
--- a/third_party/WebKit/Source/core/svg/SVGSVGElement.h
+++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.h
@@ -65,7 +65,7 @@ public:
FloatSize currentViewportSize() const;
FloatRect currentViewBoxRect() const;
- float currentScale() const;
+ 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
void setCurrentScale(float scale);
FloatPoint currentTranslate() { return m_translation->value(); }
@@ -161,6 +161,7 @@ private:
RefPtrWillBeMember<SMILTimeContainer> m_timeContainer;
RefPtrWillBeMember<SVGPoint> m_translation;
RefPtrWillBeMember<SVGViewSpec> m_viewSpec;
+ float m_currentScale;
friend class SVGCurrentTranslateTearOff;
};

Powered by Google App Engine
This is Rietveld 408576698