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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 */ 18 */
19 19
20 #ifndef SVGForeignObjectElement_h 20 #ifndef SVGForeignObjectElement_h
21 #define SVGForeignObjectElement_h 21 #define SVGForeignObjectElement_h
22 22
23 #include "core/SVGNames.h" 23 #include "core/SVGNames.h"
24 #include "core/svg/SVGAnimatedBoolean.h" 24 #include "core/svg/SVGAnimatedBoolean.h"
25 #include "core/svg/SVGAnimatedLength.h" 25 #include "core/svg/SVGAnimatedLength.h"
26 #include "core/svg/SVGGraphicsElement.h" 26 #include "core/svg/SVGGraphicsElement.h"
27 #include "core/svg/SVGURIReference.h" 27 #include "core/svg/SVGURIReference.h"
28 #include "platform/heap/Handle.h"
28 29
29 namespace blink { 30 namespace blink {
30 31
31 class SVGForeignObjectElement final : public SVGGraphicsElement { 32 class SVGForeignObjectElement final : public SVGGraphicsElement {
32 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
33 public: 34 public:
34 DECLARE_NODE_FACTORY(SVGForeignObjectElement); 35 DECLARE_NODE_FACTORY(SVGForeignObjectElement);
35 36
36 SVGAnimatedLength* x() const { return m_x.get(); } 37 SVGAnimatedLength* x() const { return m_x.get(); }
37 SVGAnimatedLength* y() const { return m_y.get(); } 38 SVGAnimatedLength* y() const { return m_y.get(); }
38 SVGAnimatedLength* width() const { return m_width.get(); } 39 SVGAnimatedLength* width() const { return m_width.get(); }
39 SVGAnimatedLength* height() const { return m_height.get(); } 40 SVGAnimatedLength* height() const { return m_height.get(); }
40 41
42 virtual void trace(Visitor*) override;
43
41 private: 44 private:
42 explicit SVGForeignObjectElement(Document&); 45 explicit SVGForeignObjectElement(Document&);
43 46
44 bool isSupportedAttribute(const QualifiedName&); 47 bool isSupportedAttribute(const QualifiedName&);
45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
46 virtual bool isPresentationAttribute(const QualifiedName&) const override; 49 virtual bool isPresentationAttribute(const QualifiedName&) const override;
47 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override; 50 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
48 virtual void svgAttributeChanged(const QualifiedName&) override; 51 virtual void svgAttributeChanged(const QualifiedName&) override;
49 52
50 virtual bool rendererIsNeeded(const RenderStyle&) override; 53 virtual bool rendererIsNeeded(const RenderStyle&) override;
51 virtual RenderObject* createRenderer(RenderStyle*) override; 54 virtual RenderObject* createRenderer(RenderStyle*) override;
52 55
53 virtual bool selfHasRelativeLengths() const override; 56 virtual bool selfHasRelativeLengths() const override;
54 57
55 RefPtr<SVGAnimatedLength> m_x; 58 RefPtrWillBeMember<SVGAnimatedLength> m_x;
56 RefPtr<SVGAnimatedLength> m_y; 59 RefPtrWillBeMember<SVGAnimatedLength> m_y;
57 RefPtr<SVGAnimatedLength> m_width; 60 RefPtrWillBeMember<SVGAnimatedLength> m_width;
58 RefPtr<SVGAnimatedLength> m_height; 61 RefPtrWillBeMember<SVGAnimatedLength> m_height;
59 }; 62 };
60 63
61 } // namespace blink 64 } // namespace blink
62 65
63 #endif // SVGForeignObjectElement_h 66 #endif // SVGForeignObjectElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698