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

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

Issue 1308383007: Devtools [LayoutEditor]: Show medias for the rules with the same selectors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@affected2
Patch Set: Rebase Created 5 years, 3 months 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 | « no previous file | Source/core/inspector/LayoutEditor.h » ('j') | Source/core/inspector/LayoutEditor.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorOverlayPage.html
diff --git a/Source/core/inspector/InspectorOverlayPage.html b/Source/core/inspector/InspectorOverlayPage.html
index ff0df28eb26e25f1b1519539a468d3087cb60e98..9d2ec72f3d9d28061f26d95f4768973abd6671ce 100644
--- a/Source/core/inspector/InspectorOverlayPage.html
+++ b/Source/core/inspector/InspectorOverlayPage.html
@@ -835,7 +835,7 @@ function showSelectorTooltip()
tooltipElement.style.left = "100px";
tooltipElement.style.top = "100px";
var selectorInfo = JSON.parse(InspectorOverlayHost.currentSelectorInfo());
- tooltipElement.textContent = selectorInfo.selector;
+ tooltipElement.textContent = (selectorInfo.medias ? selectorInfo.medias.join(", ") + " " : "") + selectorInfo.selector;
dgozman 2015/09/02 22:06:25 Add @media before each media.
sergeyv 2015/09/02 23:58:34 Done.
tooltipElement.style.backgroundColor = "#eee";
var matchedNodesCanvas = document.getElementById("layout-editor-matched-nodes-canvas");
« no previous file with comments | « no previous file | Source/core/inspector/LayoutEditor.h » ('j') | Source/core/inspector/LayoutEditor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698