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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGUseElement.h

Issue 1839973003: If the <use> is hidden and the child of it is visible, should clip the non-resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 SVGGraphicsElement* targetGraphicsElementForClipping() const; 51 SVGGraphicsElement* targetGraphicsElementForClipping() const;
52 52
53 SVGAnimatedLength* x() const { return m_x.get(); } 53 SVGAnimatedLength* x() const { return m_x.get(); }
54 SVGAnimatedLength* y() const { return m_y.get(); } 54 SVGAnimatedLength* y() const { return m_y.get(); }
55 SVGAnimatedLength* width() const { return m_width.get(); } 55 SVGAnimatedLength* width() const { return m_width.get(); }
56 SVGAnimatedLength* height() const { return m_height.get(); } 56 SVGAnimatedLength* height() const { return m_height.get(); }
57 57
58 void buildPendingResource() override; 58 void buildPendingResource() override;
59 59
60 void dispatchPendingEvent(SVGUseEventSender*); 60 void dispatchPendingEvent(SVGUseEventSender*);
61 bool isVisibleGraphicsElementForClipping();
61 void toClipPath(Path&) const; 62 void toClipPath(Path&) const;
62 63
63 DECLARE_VIRTUAL_TRACE(); 64 DECLARE_VIRTUAL_TRACE();
64 65
65 private: 66 private:
66 explicit SVGUseElement(Document&); 67 explicit SVGUseElement(Document&);
67 68
68 void dispose(); 69 void dispose();
69 70
70 FloatRect getBBox() override; 71 FloatRect getBBox() override;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 116
116 bool m_haveFiredLoadEvent; 117 bool m_haveFiredLoadEvent;
117 bool m_needsShadowTreeRecreation; 118 bool m_needsShadowTreeRecreation;
118 Member<SVGElement> m_targetElementInstance; 119 Member<SVGElement> m_targetElementInstance;
119 Member<DocumentResource> m_resource; 120 Member<DocumentResource> m_resource;
120 }; 121 };
121 122
122 } // namespace blink 123 } // namespace blink
123 124
124 #endif // SVGUseElement_h 125 #endif // SVGUseElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698