diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebCore/platform/graphics/openvg/PathOpenVG.cpp | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebCore/platform/graphics/openvg/PathOpenVG.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/openvg/PathOpenVG.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/openvg/PathOpenVG.cpp b/Source/WebCore/platform/graphics/openvg/PathOpenVG.cpp index 39a4b06..95df242 100644 --- a/Source/WebCore/platform/graphics/openvg/PathOpenVG.cpp +++ b/Source/WebCore/platform/graphics/openvg/PathOpenVG.cpp @@ -169,7 +169,7 @@ FloatRect Path::boundingRect() const return FloatRect(FloatPoint(minX, minY), FloatSize(width, height)); } -FloatRect Path::strokeBoundingRect(StrokeStyleApplier* applier) +FloatRect Path::strokeBoundingRect(StrokeStyleApplier* applier) const { notImplemented(); @@ -464,7 +464,7 @@ void Path::transform(const AffineTransform& transformation) // functions and Path::apply() doesn't really work as long as we rely on VGPath // as primary path storage. -float Path::length() +float Path::length() const { m_path->makeCompatibleContextCurrent(); VGfloat length = vgPathLength(m_path->vgPath(), 0, vgGetParameteri(m_path->vgPath(), VG_PATH_NUM_SEGMENTS)); @@ -472,7 +472,7 @@ float Path::length() return length; } -FloatPoint Path::pointAtLength(float length, bool& ok) +FloatPoint Path::pointAtLength(float length, bool& ok) const { VGfloat x = 0, y = 0; m_path->makeCompatibleContextCurrent(); @@ -483,7 +483,7 @@ FloatPoint Path::pointAtLength(float length, bool& ok) return FloatPoint(x, y); } -float Path::normalAngleAtLength(float length, bool& ok) +float Path::normalAngleAtLength(float length, bool& ok) const { VGfloat tangentX, tangentY; m_path->makeCompatibleContextCurrent(); |