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

Unified Diff: Source/core/svg/SVGSVGElement.cpp

Issue 986603002: Move "zoomAndPan enabled" logic from SVGDocumentExtensions to SVGSVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/svg/SVGSVGElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGSVGElement.cpp
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp
index 117feddae61fc20df439d2b6fcc9de39126e8dce..b1973777bc856540e3e48b1bcd27628bf945eed8 100644
--- a/Source/core/svg/SVGSVGElement.cpp
+++ b/Source/core/svg/SVGSVGElement.cpp
@@ -209,6 +209,14 @@ void SVGSVGElement::updateCurrentTranslate()
object->setNeedsLayoutAndFullPaintInvalidation();
}
+bool SVGSVGElement::zoomAndPanEnabled() const
+{
+ const SVGZoomAndPan* currentViewSpec = this;
+ if (m_useCurrentView)
+ currentViewSpec = m_viewSpec.get();
+ return currentViewSpec && currentViewSpec->zoomAndPan() == SVGZoomAndPanMagnify;
+}
+
void SVGSVGElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
if (!nearestViewportElement()) {
« no previous file with comments | « Source/core/svg/SVGSVGElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698