OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 2 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 inline SVGDiscardElement::SVGDiscardElement(Document& document) | 37 inline SVGDiscardElement::SVGDiscardElement(Document& document) |
38 : SVGSMILElement(SVGNames::discardTag, document) { | 38 : SVGSMILElement(SVGNames::discardTag, document) { |
39 ASSERT(RuntimeEnabledFeatures::smilEnabled()); | 39 ASSERT(RuntimeEnabledFeatures::smilEnabled()); |
40 } | 40 } |
41 | 41 |
42 DEFINE_NODE_FACTORY(SVGDiscardElement) | 42 DEFINE_NODE_FACTORY(SVGDiscardElement) |
43 | 43 |
44 bool SVGDiscardElement::hasValidAttributeType() { | |
45 // Even if there is no targetElement, discard is still a valid animation as it | |
46 // has to delete itself. | |
47 return true; | |
48 } | |
49 | |
50 bool SVGDiscardElement::hasValidAttributeName() { | |
51 // discard does not use attributeName so it is always valid. | |
52 return true; | |
53 } | |
54 | |
55 } // namespace blink | 44 } // namespace blink |
OLD | NEW |