Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

InspectorPageAgent should expose a method to control the compositing …

…debug settings.


https://bugs.webkit.org/show_bug.cgi?id=99253

Patch by Antoine Quint <graouts@apple.com> on 2012-10-14
Reviewed by Timothy Hatcher.

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information...
commit 4ac9075d9e500e07de36400802857374c4ab6fcc 1 parent c573021
timothy@apple.com authored
View
12 Source/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2012-10-14 Antoine Quint <graouts@apple.com>
+
+ 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 <crogers@google.com>
WebAudioBus needs support for resizing bus to a smaller size
View
8 Source/WebCore/inspector/Inspector.json
@@ -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": [
View
10 Source/WebCore/inspector/InspectorPageAgent.cpp
@@ -1108,6 +1108,16 @@ void InspectorPageAgent::setTouchEmulationEnabled(ErrorString* error, bool enabl
#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)
View
1  Source/WebCore/inspector/InspectorPageAgent.h
@@ -118,6 +118,7 @@ class InspectorPageAgent : public InspectorBaseAgent<InspectorPageAgent>, public
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*);
Please sign in to comment.
Something went wrong with that request. Please try again.