summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderSVGTextPath.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2009-08-11 17:01:47 +0100
committerBen Murdoch <benm@google.com>2009-08-11 18:21:02 +0100
commit0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch)
tree2943df35f62d885c89d01063cc528dd73b480fea /WebCore/rendering/RenderSVGTextPath.h
parent7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff)
downloadexternal_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz
external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/rendering/RenderSVGTextPath.h')
-rw-r--r--WebCore/rendering/RenderSVGTextPath.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/WebCore/rendering/RenderSVGTextPath.h b/WebCore/rendering/RenderSVGTextPath.h
index efab659..8e6ff42 100644
--- a/WebCore/rendering/RenderSVGTextPath.h
+++ b/WebCore/rendering/RenderSVGTextPath.h
@@ -2,6 +2,7 @@
* This file is part of the WebKit project.
*
* Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
+ * Copyright (C) 2009 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -37,9 +38,9 @@ namespace WebCore {
bool exactAlignment() const;
bool stretchMethod() const;
+ private:
virtual const char* renderName() const { return "RenderSVGTextPath"; }
- private:
float m_startOffset;
bool m_exactAlignment : 1;
@@ -47,6 +48,16 @@ namespace WebCore {
Path m_layoutPath;
};
+
+ inline RenderSVGTextPath* toRenderSVGTextPath(RenderObject* object)
+ {
+ ASSERT(!object || !strcmp(object->renderName(), "RenderSVGTextPath"));
+ return static_cast<RenderSVGTextPath*>(object);
+ }
+
+ // This will catch anyone doing an unnecessary cast.
+ void toRenderSVGTextPath(const RenderSVGTextPath*);
+
}
#endif // ENABLE(SVG)