Title: [97444] trunk/Source/WebKit/chromium
Revision
97444
Author
[email protected]
Date
2011-10-13 23:24:10 -0700 (Thu, 13 Oct 2011)

Log Message

Expose layer debug borders to WebLayer
https://bugs.webkit.org/show_bug.cgi?id=70079

Patch by Antoine Labour <[email protected]> on 2011-10-13
Reviewed by Darin Fisher.

* public/WebLayer.h:
* src/WebLayer.cpp:
(WebKit::WebLayer::setDebugBorderColor):
(WebKit::WebLayer::setDebugBorderWidth):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (97443 => 97444)


--- trunk/Source/WebKit/chromium/ChangeLog	2011-10-14 06:14:54 UTC (rev 97443)
+++ trunk/Source/WebKit/chromium/ChangeLog	2011-10-14 06:24:10 UTC (rev 97444)
@@ -1,3 +1,15 @@
+2011-10-13  Antoine Labour  <[email protected]>
+
+        Expose layer debug borders to WebLayer
+        https://bugs.webkit.org/show_bug.cgi?id=70079
+
+        Reviewed by Darin Fisher.
+
+        * public/WebLayer.h:
+        * src/WebLayer.cpp:
+        (WebKit::WebLayer::setDebugBorderColor):
+        (WebKit::WebLayer::setDebugBorderWidth):
+
 2011-10-13  Julien Chaffraix  <[email protected]>
 
         Remove layerX / layerY from the Chromium API

Modified: trunk/Source/WebKit/chromium/public/WebLayer.h (97443 => 97444)


--- trunk/Source/WebKit/chromium/public/WebLayer.h	2011-10-14 06:14:54 UTC (rev 97443)
+++ trunk/Source/WebKit/chromium/public/WebLayer.h	2011-10-14 06:24:10 UTC (rev 97444)
@@ -26,6 +26,7 @@
 #ifndef WebLayer_h
 #define WebLayer_h
 
+#include "WebColor.h"
 #include "WebCommon.h"
 #include "WebPrivatePtr.h"
 
@@ -92,6 +93,9 @@
     WEBKIT_EXPORT void setTransform(const SkMatrix44&);
     WEBKIT_EXPORT SkMatrix44 transform() const;
 
+    WEBKIT_EXPORT void setDebugBorderColor(const WebColor&);
+    WEBKIT_EXPORT void setDebugBorderWidth(float);
+
     template<typename T> T to()
     {
         T res;

Modified: trunk/Source/WebKit/chromium/src/WebLayer.cpp (97443 => 97444)


--- trunk/Source/WebKit/chromium/src/WebLayer.cpp	2011-10-14 06:14:54 UTC (rev 97443)
+++ trunk/Source/WebKit/chromium/src/WebLayer.cpp	2011-10-14 06:24:10 UTC (rev 97444)
@@ -26,6 +26,7 @@
 #include "config.h"
 #include "WebLayer.h"
 
+#include "Color.h"
 #include "LayerChromium.h"
 #include "SkMatrix44.h"
 #include "TransformationMatrix.h"
@@ -235,6 +236,16 @@
     return skMatrix44FromTransformationMatrix(m_private->transform());
 }
 
+void WebLayer::setDebugBorderColor(const WebColor& color)
+{
+    m_private->setDebugBorderColor(color);
+}
+
+void WebLayer::setDebugBorderWidth(float width)
+{
+    m_private->setDebugBorderWidth(width);
+}
+
 WebLayer::WebLayer(const PassRefPtr<LayerChromium>& node)
     : m_private(node)
 {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to