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

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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 10 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
« no previous file with comments | « Source/core/svg/SVGElement.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
(...skipping 29 matching lines...) Expand all
40 SVGAnimatedLength* height() const { return m_height.get(); } 40 SVGAnimatedLength* height() const { return m_height.get(); }
41 41
42 virtual void trace(Visitor*) override; 42 virtual void trace(Visitor*) override;
43 43
44 private: 44 private:
45 explicit SVGForeignObjectElement(Document&); 45 explicit SVGForeignObjectElement(Document&);
46 46
47 bool isSupportedAttribute(const QualifiedName&); 47 bool isSupportedAttribute(const QualifiedName&);
48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
49 virtual bool isPresentationAttribute(const QualifiedName&) const override; 49 virtual bool isPresentationAttribute(const QualifiedName&) const override;
50 virtual bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const o verride;
50 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override; 51 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) override;
51 virtual void svgAttributeChanged(const QualifiedName&) override; 52 virtual void svgAttributeChanged(const QualifiedName&) override;
52 53
53 virtual bool rendererIsNeeded(const LayoutStyle&) override; 54 virtual bool rendererIsNeeded(const LayoutStyle&) override;
54 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 55 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
55 56
56 virtual bool selfHasRelativeLengths() const override; 57 virtual bool selfHasRelativeLengths() const override;
57 58
58 RefPtrWillBeMember<SVGAnimatedLength> m_x; 59 RefPtrWillBeMember<SVGAnimatedLength> m_x;
59 RefPtrWillBeMember<SVGAnimatedLength> m_y; 60 RefPtrWillBeMember<SVGAnimatedLength> m_y;
60 RefPtrWillBeMember<SVGAnimatedLength> m_width; 61 RefPtrWillBeMember<SVGAnimatedLength> m_width;
61 RefPtrWillBeMember<SVGAnimatedLength> m_height; 62 RefPtrWillBeMember<SVGAnimatedLength> m_height;
62 }; 63 };
63 64
64 } // namespace blink 65 } // namespace blink
65 66
66 #endif // SVGForeignObjectElement_h 67 #endif // SVGForeignObjectElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698