OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |