Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: Source/WebCore/inspector/InspectorOverlayPage.html

Issue 11366221: Merge 133885 - Web Inspector: Add option to disable rulers (Elements panel) (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/inspector/InspectorOverlay.cpp ('k') | Source/WebCore/inspector/front-end/DOMAgent.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorOverlayPage.html
===================================================================
--- Source/WebCore/inspector/InspectorOverlayPage.html (revision 134412)
+++ Source/WebCore/inspector/InspectorOverlayPage.html (working copy)
@@ -124,6 +124,8 @@
function _drawGrid(highlight, rulerAtRight, rulerAtBottom)
{
+ if (!highlight.showRulers)
+ return;
context.save();
var width = canvas.width;
@@ -403,6 +405,8 @@
function _drawRulers(highlight, rulerAtRight, rulerAtBottom)
{
+ if (!highlight.showRulers)
+ return;
context.save();
var width = canvas.width;
var height = canvas.height;
« no previous file with comments | « Source/WebCore/inspector/InspectorOverlay.cpp ('k') | Source/WebCore/inspector/front-end/DOMAgent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698