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

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

Issue 2323653002: Remove SVGSVGElement.viewport attribute (Closed)
Patch Set: rebased Created 4 years, 3 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, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 UseCounter::count(doc, UseCounter::SVGSVGElement); 82 UseCounter::count(doc, UseCounter::SVGSVGElement);
83 } 83 }
84 84
85 DEFINE_NODE_FACTORY(SVGSVGElement) 85 DEFINE_NODE_FACTORY(SVGSVGElement)
86 86
87 SVGSVGElement::~SVGSVGElement() 87 SVGSVGElement::~SVGSVGElement()
88 { 88 {
89 } 89 }
90 90
91 SVGRectTearOff* SVGSVGElement::viewport() const
92 {
93 // FIXME: This method doesn't follow the spec and is basically untested. Par ent documents are not considered here.
94 // As we have no test coverage for this, we're going to disable it completly for now.
95 return SVGRectTearOff::create(SVGRect::create(), 0, PropertyIsNotAnimVal);
96 }
97
98 SVGViewSpec* SVGSVGElement::currentView() 91 SVGViewSpec* SVGSVGElement::currentView()
99 { 92 {
100 if (!m_viewSpec) 93 if (!m_viewSpec)
101 m_viewSpec = SVGViewSpec::create(this); 94 m_viewSpec = SVGViewSpec::create(this);
102 return m_viewSpec; 95 return m_viewSpec;
103 } 96 }
104 97
105 float SVGSVGElement::currentScale() const 98 float SVGSVGElement::currentScale() const
106 { 99 {
107 if (!isConnected() || !isOutermostSVGSVGElement()) 100 if (!isConnected() || !isOutermostSVGSVGElement())
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 visitor->trace(m_width); 755 visitor->trace(m_width);
763 visitor->trace(m_height); 756 visitor->trace(m_height);
764 visitor->trace(m_translation); 757 visitor->trace(m_translation);
765 visitor->trace(m_timeContainer); 758 visitor->trace(m_timeContainer);
766 visitor->trace(m_viewSpec); 759 visitor->trace(m_viewSpec);
767 SVGGraphicsElement::trace(visitor); 760 SVGGraphicsElement::trace(visitor);
768 SVGFitToViewBox::trace(visitor); 761 SVGFitToViewBox::trace(visitor);
769 } 762 }
770 763
771 } // namespace blink 764 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGSVGElement.h ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698