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/SVGUseElement.h

Issue 1310873004: Include additional translation in getBBox for SVGUseElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void buildPendingResource() override; 56 void buildPendingResource() override;
57 57
58 void dispatchPendingEvent(SVGUseEventSender*); 58 void dispatchPendingEvent(SVGUseEventSender*);
59 void toClipPath(Path&) const; 59 void toClipPath(Path&) const;
60 60
61 DECLARE_VIRTUAL_TRACE(); 61 DECLARE_VIRTUAL_TRACE();
62 62
63 private: 63 private:
64 explicit SVGUseElement(Document&); 64 explicit SVGUseElement(Document&);
65 65
66 FloatRect getBBox() override;
67
66 bool isPresentationAttribute(const QualifiedName&) const override; 68 bool isPresentationAttribute(const QualifiedName&) const override;
67 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; 69 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
68 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override; 70 bool isPresentationAttributeWithSVGDOM(const QualifiedName&) const override;
69 71
70 bool isStructurallyExternal() const override { return !hrefString().isNull() && isExternalURIReference(hrefString(), document()); } 72 bool isStructurallyExternal() const override { return !hrefString().isNull() && isExternalURIReference(hrefString(), document()); }
71 73
72 InsertionNotificationRequest insertedInto(ContainerNode*) override; 74 InsertionNotificationRequest insertedInto(ContainerNode*) override;
73 void removedFrom(ContainerNode*) override; 75 void removedFrom(ContainerNode*) override;
74 76
75 void svgAttributeChanged(const QualifiedName&) override; 77 void svgAttributeChanged(const QualifiedName&) override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 111
110 bool m_haveFiredLoadEvent; 112 bool m_haveFiredLoadEvent;
111 bool m_needsShadowTreeRecreation; 113 bool m_needsShadowTreeRecreation;
112 RefPtrWillBeMember<SVGElement> m_targetElementInstance; 114 RefPtrWillBeMember<SVGElement> m_targetElementInstance;
113 ResourcePtr<DocumentResource> m_resource; 115 ResourcePtr<DocumentResource> m_resource;
114 }; 116 };
115 117
116 } // namespace blink 118 } // namespace blink
117 119
118 #endif // SVGUseElement_h 120 #endif // SVGUseElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698