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

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

Issue 24527003: [oilpan] Implement accept methods to trace the class hierarchy of SVGElement and all sub-classes. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 2 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, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 virtual SVGElement* nearestViewportElement() const; 35 virtual SVGElement* nearestViewportElement() const;
36 virtual SVGElement* farthestViewportElement() const; 36 virtual SVGElement* farthestViewportElement() const;
37 37
38 virtual FloatRect getBBox(StyleUpdateStrategy = AllowStyleUpdate); 38 virtual FloatRect getBBox(StyleUpdateStrategy = AllowStyleUpdate);
39 virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); 39 virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate);
40 virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate) ; 40 virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate) ;
41 41
42 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope mode) const { return SVGLocatable::localCoordinateSpaceTransform(mode); } 42 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope mode) const { return SVGLocatable::localCoordinateSpaceTransform(mode); }
43 43
44 virtual void accept(Visitor* visitor) const OVERRIDE { SVGStyledElement::acc ept(visitor); }
45
44 protected: 46 protected:
45 SVGStyledLocatableElement(const QualifiedName&, const Handle<Document>&, Con structionType = CreateSVGElement); 47 SVGStyledLocatableElement(const QualifiedName&, const Handle<Document>&, Con structionType = CreateSVGElement);
46 48
47 private: 49 private:
48 virtual bool isStyledLocatable() const OVERRIDE { return true; } 50 virtual bool isStyledLocatable() const OVERRIDE { return true; }
49 }; 51 };
50 52
51 inline SVGStyledLocatableElement* toSVGStyledLocatableElement(SVGElement* elemen t) 53 inline SVGStyledLocatableElement* toSVGStyledLocatableElement(SVGElement* elemen t)
52 { 54 {
53 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isStyledLocatable()); 55 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isStyledLocatable());
54 return static_cast<SVGStyledLocatableElement*>(element); 56 return static_cast<SVGStyledLocatableElement*>(element);
55 } 57 }
56 58
57 } // namespace WebCore 59 } // namespace WebCore
58 60
59 #endif // ENABLE(SVG) 61 #endif // ENABLE(SVG)
60 #endif // SVGStyledLocatableElement_h 62 #endif // SVGStyledLocatableElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698