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

Unified Diff: Source/core/svg/SVGUseElement.h

Issue 1154853007: Move toClipPath to SVGGeometryElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Draft 14 Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGUseElement.h
diff --git a/Source/core/svg/SVGUseElement.h b/Source/core/svg/SVGUseElement.h
index 88f3537941989ef5e6577921cd4ddb4107c23f2d..dde6fcbb0d50efbb97560efd13e75b5ff28fc8cb 100644
--- a/Source/core/svg/SVGUseElement.h
+++ b/Source/core/svg/SVGUseElement.h
@@ -24,6 +24,7 @@
#include "core/events/EventSender.h"
#include "core/fetch/DocumentResource.h"
#include "core/svg/SVGAnimatedLength.h"
+#include "core/svg/SVGGeometryElement.h"
#include "core/svg/SVGGraphicsElement.h"
#include "core/svg/SVGURIReference.h"
#include "platform/heap/Handle.h"
@@ -43,7 +44,9 @@ public:
void invalidateShadowTree();
- LayoutObject* layoutObjectClipChild() const;
+ // Return the element that should be used for clipping,
+ // or null if a valid clip element is not directly referenced.
+ SVGGraphicsElement* targetGraphicsElementForClipping() const;
SVGAnimatedLength* x() const { return m_x.get(); }
SVGAnimatedLength* y() const { return m_y.get(); }
@@ -53,6 +56,7 @@ public:
virtual void buildPendingResource() override;
void dispatchPendingEvent(SVGUseEventSender*);
+ void toClipPath(Path&) const;
DECLARE_VIRTUAL_TRACE();
@@ -71,7 +75,6 @@ private:
virtual void svgAttributeChanged(const QualifiedName&) override;
virtual LayoutObject* createLayoutObject(const ComputedStyle&) override;
- virtual void toClipPath(Path&) override;
void clearResourceReferences();
void buildShadowAndInstanceTree(SVGElement* target);
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.h ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698