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

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.cpp » ('j') | no next file with comments »
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..969da8e782b8f4eb40d2d8b445e0c5520b2d5ec6 100644
--- a/Source/core/inspector/InspectorOverlayPage.html
+++ b/Source/core/inspector/InspectorOverlayPage.html
@@ -835,7 +835,8 @@ function showSelectorTooltip()
tooltipElement.style.left = "100px";
tooltipElement.style.top = "100px";
var selectorInfo = JSON.parse(InspectorOverlayHost.currentSelectorInfo());
- tooltipElement.textContent = selectorInfo.selector;
+ var medias = selectorInfo.medias ? selectorInfo.medias.map(function(media) {return "@media " + media + ""}) : "";
+ tooltipElement.textContent = (medias ? medias.join(", ") + " { " : "") + selectorInfo.selector + ( medias ? " } " : "");
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.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698