Title: [118682] trunk/Source/WebCore
Revision
118682
Author
commit-qu...@webkit.org
Date
2012-05-28 08:04:30 -0700 (Mon, 28 May 2012)

Log Message

[BlackBerry] Add a constructor to create a Path from an SkPath
https://bugs.webkit.org/show_bug.cgi?id=87566

Patch by Arvid Nilsson <anils...@rim.com> on 2012-05-28
Reviewed by Antonio Gomes.

Skia allows the creation of more complex paths than WebCore would
allow. This will be used in the BlackBerry port to implement a default
tap highlight appearance.

Reviewed internally by Mike Lattanzio.

PR #154329

* platform/graphics/Path.h:
(Path):
* platform/graphics/skia/PathSkia.cpp:
(WebCore):
(WebCore::Path::Path):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (118681 => 118682)


--- trunk/Source/WebCore/ChangeLog	2012-05-28 14:54:03 UTC (rev 118681)
+++ trunk/Source/WebCore/ChangeLog	2012-05-28 15:04:30 UTC (rev 118682)
@@ -1,3 +1,24 @@
+2012-05-28  Arvid Nilsson  <anils...@rim.com>
+
+        [BlackBerry] Add a constructor to create a Path from an SkPath
+        https://bugs.webkit.org/show_bug.cgi?id=87566
+
+        Reviewed by Antonio Gomes.
+
+        Skia allows the creation of more complex paths than WebCore would
+        allow. This will be used in the BlackBerry port to implement a default
+        tap highlight appearance.
+
+        Reviewed internally by Mike Lattanzio.
+
+        PR #154329
+
+        * platform/graphics/Path.h:
+        (Path):
+        * platform/graphics/skia/PathSkia.cpp:
+        (WebCore):
+        (WebCore::Path::Path):
+
 2012-05-28  Alexis Menard  <alexis.men...@openbossa.org>
 
         Unreviewed build fix for Mac on Lion.

Modified: trunk/Source/WebCore/platform/graphics/Path.h (118681 => 118682)


--- trunk/Source/WebCore/platform/graphics/Path.h	2012-05-28 14:54:03 UTC (rev 118681)
+++ trunk/Source/WebCore/platform/graphics/Path.h	2012-05-28 15:04:30 UTC (rev 118682)
@@ -159,6 +159,10 @@
         void platformAddPathForRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius);
 #endif
 
+#if PLATFORM(BLACKBERRY)
+        Path(const SkPath&);
+#endif
+
     private:
         PlatformPathPtr m_path;
     };

Modified: trunk/Source/WebCore/platform/graphics/skia/PathSkia.cpp (118681 => 118682)


--- trunk/Source/WebCore/platform/graphics/skia/PathSkia.cpp	2012-05-28 14:54:03 UTC (rev 118681)
+++ trunk/Source/WebCore/platform/graphics/skia/PathSkia.cpp	2012-05-28 15:04:30 UTC (rev 118682)
@@ -53,6 +53,13 @@
     m_path = new SkPath(*other.m_path);
 }
 
+#if PLATFORM(BLACKBERRY)
+Path::Path(const SkPath& path)
+{
+    m_path = new SkPath(path);
+}
+#endif
+
 Path::~Path()
 {
     delete m_path;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to