193ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles)/* 209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) * Copyright (C) 2014 Samsung Electronics. All rights reserved. 393ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * 493ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * Redistribution and use in source and binary forms, with or without 593ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * modification, are permitted provided that the following conditions are 693ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * met: 793ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * 893ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * * Redistributions of source code must retain the above copyright 993ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * notice, this list of conditions and the following disclaimer. 1093ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * * Redistributions in binary form must reproduce the above 1193ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * copyright notice, this list of conditions and the following disclaimer 1293ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * in the documentation and/or other materials provided with the 1393ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * distribution. 1493ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * * Neither the name of Google Inc. nor the names of its 1593ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * contributors may be used to endorse or promote products derived from 1693ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * this software without specific prior written permission. 1793ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * 1893ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1993ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2093ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2193ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2293ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2393ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2493ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2593ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2693ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2793ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2893ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2993ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) */ 3093ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) 3109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)#ifndef SVGDiscardElement_h 3209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)#define SVGDiscardElement_h 33591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch 3409380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)#include "core/svg/animation/SVGSMILElement.h" 3593ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) 36c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)namespace blink { 3793ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) 3809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)class SVGDiscardElement FINAL : public SVGSMILElement { 397242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci DEFINE_WRAPPERTYPEINFO(); 40591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdochpublic: 415d92fedcae5e801a8b224de090094f2d9df0b54aTorne (Richard Coles) DECLARE_NODE_FACTORY(SVGDiscardElement); 42591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch 4309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual bool isSVGDiscardElement() const OVERRIDE { return true; } 44591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdochprivate: 4509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) explicit SVGDiscardElement(Document&); 4609380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) 4709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void resetAnimatedType() OVERRIDE { } 4809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void clearAnimatedType(SVGElement* targetElement) OVERRIDE { } 4909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void applyResultsToTarget() OVERRIDE { } 5009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual bool hasValidAttributeType() OVERRIDE; 5109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual bool hasValidAttributeName() OVERRIDE; 5209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void animationAttributeChanged() OVERRIDE { } 53591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch 5409380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void startedActiveInterval() OVERRIDE { } 5509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) OVERRIDE { } 56591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch}; 57591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch 58c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)} // namespace blink 59591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch 6009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)#endif // SVGDiscardElement_h 61