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

Side by Side Diff: Source/core/svg/SVGAElement.h

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 23 matching lines...) Expand all
34 public SVGExternalResourcesRequired { 34 public SVGExternalResourcesRequired {
35 public: 35 public:
36 static PassRefPtr<SVGAElement> create(const QualifiedName&, Document*); 36 static PassRefPtr<SVGAElement> create(const QualifiedName&, Document*);
37 37
38 private: 38 private:
39 SVGAElement(const QualifiedName&, Document*); 39 SVGAElement(const QualifiedName&, Document*);
40 40
41 virtual bool isValid() const { return SVGTests::isValid(); } 41 virtual bool isValid() const { return SVGTests::isValid(); }
42 42
43 virtual String title() const; 43 virtual String title() const;
44 virtual String target() const { return svgTarget(); } 44 virtual String target() const { return svgTargetCurrentValue(); }
45 45
46 bool isSupportedAttribute(const QualifiedName&); 46 bool isSupportedAttribute(const QualifiedName&);
47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
48 virtual void svgAttributeChanged(const QualifiedName&); 48 virtual void svgAttributeChanged(const QualifiedName&);
49 49
50 virtual RenderObject* createRenderer(RenderStyle*); 50 virtual RenderObject* createRenderer(RenderStyle*);
51 51
52 virtual void defaultEventHandler(Event*); 52 virtual void defaultEventHandler(Event*);
53 53
54 virtual bool supportsFocus() const OVERRIDE; 54 virtual bool supportsFocus() const OVERRIDE;
55 virtual bool isMouseFocusable() const; 55 virtual bool isMouseFocusable() const;
56 virtual bool isKeyboardFocusable(KeyboardEvent*) const; 56 virtual bool isKeyboardFocusable(KeyboardEvent*) const;
57 virtual bool rendererIsFocusable() const OVERRIDE; 57 virtual bool rendererIsFocusable() const OVERRIDE;
58 virtual bool isURLAttribute(const Attribute&) const; 58 virtual bool isURLAttribute(const Attribute&) const;
59 59
60 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const; 60 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const;
61 61
62 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement) 62 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement)
63 // This declaration used to define a non-virtual "String& target() const " method, that clashes with "virtual String Element::target() const". 63 // This declaration used to define a non-virtual "String& target() const " method, that clashes with "virtual String Element::target() const".
64 // That's why it has been renamed to "svgTarget", the CodeGenerators tak e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener ator.pm. 64 // That's why it has been renamed to "svgTarget", the CodeGenerators tak e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener ator.pm.
65 DECLARE_ANIMATED_STRING(SVGTarget, svgTarget) 65 DECLARE_ANIMATED_STRING(SVGTarget, svgTarget)
66 DECLARE_ANIMATED_STRING(Href, href) 66 DECLARE_ANIMATED_STRING(Href, href)
67 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 67 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
68 END_DECLARE_ANIMATED_PROPERTIES 68 END_DECLARE_ANIMATED_PROPERTIES
69 }; 69 };
70 70
71 } // namespace WebCore 71 } // namespace WebCore
72 72
73 #endif // SVGAElement_h 73 #endif // SVGAElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698