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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 if (!nearestViewportElement()) { | 170 if (!nearestViewportElement()) { |
171 bool setListener = true; | 171 bool setListener = true; |
172 | 172 |
173 // Only handle events if we're the outermost <svg> element | 173 // Only handle events if we're the outermost <svg> element |
174 if (name == HTMLNames::onunloadAttr) { | 174 if (name == HTMLNames::onunloadAttr) { |
175 document().setWindowAttributeEventListener(EventTypeNames::unload, c
reateAttributeEventListener(document().frame(), name, value, eventParameterName(
))); | 175 document().setWindowAttributeEventListener(EventTypeNames::unload, c
reateAttributeEventListener(document().frame(), name, value, eventParameterName(
))); |
176 } else if (name == HTMLNames::onresizeAttr) { | 176 } else if (name == HTMLNames::onresizeAttr) { |
177 document().setWindowAttributeEventListener(EventTypeNames::resize, c
reateAttributeEventListener(document().frame(), name, value, eventParameterName(
))); | 177 document().setWindowAttributeEventListener(EventTypeNames::resize, c
reateAttributeEventListener(document().frame(), name, value, eventParameterName(
))); |
178 } else if (name == HTMLNames::onscrollAttr) { | 178 } else if (name == HTMLNames::onscrollAttr) { |
179 document().setWindowAttributeEventListener(EventTypeNames::scroll, c
reateAttributeEventListener(document().frame(), name, value, eventParameterName(
))); | 179 document().setWindowAttributeEventListener(EventTypeNames::scroll, c
reateAttributeEventListener(document().frame(), name, value, eventParameterName(
))); |
180 } else if (name == SVGNames::onzoomAttr) { | |
181 Deprecation::countDeprecation(document(), UseCounter::SVGZoomEvent); | |
182 document().setWindowAttributeEventListener(EventTypeNames::zoom, cre
ateAttributeEventListener(document().frame(), name, value, eventParameterName())
); | |
183 } else { | 180 } else { |
184 setListener = false; | 181 setListener = false; |
185 } | 182 } |
186 | 183 |
187 if (setListener) | 184 if (setListener) |
188 return; | 185 return; |
189 } | 186 } |
190 | 187 |
191 if (name == HTMLNames::onabortAttr) { | 188 if (name == HTMLNames::onabortAttr) { |
192 document().setWindowAttributeEventListener(EventTypeNames::abort, create
AttributeEventListener(document().frame(), name, value, eventParameterName())); | 189 document().setWindowAttributeEventListener(EventTypeNames::abort, create
AttributeEventListener(document().frame(), name, value, eventParameterName())); |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 visitor->trace(m_width); | 736 visitor->trace(m_width); |
740 visitor->trace(m_height); | 737 visitor->trace(m_height); |
741 visitor->trace(m_translation); | 738 visitor->trace(m_translation); |
742 visitor->trace(m_timeContainer); | 739 visitor->trace(m_timeContainer); |
743 visitor->trace(m_viewSpec); | 740 visitor->trace(m_viewSpec); |
744 SVGGraphicsElement::trace(visitor); | 741 SVGGraphicsElement::trace(visitor); |
745 SVGFitToViewBox::trace(visitor); | 742 SVGFitToViewBox::trace(visitor); |
746 } | 743 } |
747 | 744 |
748 } // namespace blink | 745 } // namespace blink |
OLD | NEW |