Title: [131265] trunk/Source/WebCore
Revision
131265
Author
[email protected]
Date
2012-10-14 07:19:52 -0700 (Sun, 14 Oct 2012)

Log Message

InspectorPageAgent should expose a method to control the compositing debug settings.
https://bugs.webkit.org/show_bug.cgi?id=99253

Patch by Antoine Quint <[email protected]> on 2012-10-14
Reviewed by Timothy Hatcher.

* inspector/Inspector.json:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::setCompositingBordersVisible):
* inspector/InspectorPageAgent.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (131264 => 131265)


--- trunk/Source/WebCore/ChangeLog	2012-10-14 02:21:36 UTC (rev 131264)
+++ trunk/Source/WebCore/ChangeLog	2012-10-14 14:19:52 UTC (rev 131265)
@@ -1,3 +1,15 @@
+2012-10-14  Antoine Quint  <[email protected]>
+
+        InspectorPageAgent should expose a method to control the compositing debug settings.
+        https://bugs.webkit.org/show_bug.cgi?id=99253
+
+        Reviewed by Timothy Hatcher.
+
+        * inspector/Inspector.json:
+        * inspector/InspectorPageAgent.cpp:
+        (WebCore::InspectorPageAgent::setCompositingBordersVisible):
+        * inspector/InspectorPageAgent.h:
+
 2012-10-13  Chris Rogers  <[email protected]>
 
         WebAudioBus needs support for resizing bus to a smaller size

Modified: trunk/Source/WebCore/inspector/Inspector.json (131264 => 131265)


--- trunk/Source/WebCore/inspector/Inspector.json	2012-10-14 02:21:36 UTC (rev 131264)
+++ trunk/Source/WebCore/inspector/Inspector.json	2012-10-14 14:19:52 UTC (rev 131265)
@@ -404,6 +404,14 @@
                 ],
                 "description": "Toggles mouse event-based touch event emulation.",
                 "hidden": true
+            },
+            {
+                "name": "setCompositingBordersVisible",
+                "description": "Controls the visibility of compositing borders.",
+                "parameters": [
+                    { "name": "visible", "type": "boolean", "description": "True for showing compositing borders." }
+                ],
+                "hidden": true
             }
         ],
         "events": [

Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.cpp (131264 => 131265)


--- trunk/Source/WebCore/inspector/InspectorPageAgent.cpp	2012-10-14 02:21:36 UTC (rev 131264)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.cpp	2012-10-14 14:19:52 UTC (rev 131265)
@@ -1108,6 +1108,16 @@
 #endif
 }
 
+void InspectorPageAgent::setCompositingBordersVisible(ErrorString*, bool visible)
+{
+    Settings* settings = m_page->settings();
+    if (!settings)
+        return;
+
+    settings->setShowDebugBorders(visible);
+    settings->setShowRepaintCounter(visible);
+}
+
 } // namespace WebCore
 
 #endif // ENABLE(INSPECTOR)

Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.h (131264 => 131265)


--- trunk/Source/WebCore/inspector/InspectorPageAgent.h	2012-10-14 02:21:36 UTC (rev 131264)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.h	2012-10-14 14:19:52 UTC (rev 131265)
@@ -118,6 +118,7 @@
     virtual void clearDeviceOrientationOverride(ErrorString*);
     virtual void canOverrideDeviceOrientation(ErrorString*, bool*);
     virtual void setTouchEmulationEnabled(ErrorString*, bool);
+    virtual void setCompositingBordersVisible(ErrorString*, bool);
 
     // Geolocation override helpers.
     GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to