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

Unified Diff: Source/devtools/front_end/components/ObjectPopoverHelper.js

Issue 1107233003: Devtools: [CustomFormatter] Add context menu to disassemble custom previews (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Introduce WebInspector.ObjectPropertiesSection.defaultObjectPresentation Created 5 years, 7 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
Index: Source/devtools/front_end/components/ObjectPopoverHelper.js
diff --git a/Source/devtools/front_end/components/ObjectPopoverHelper.js b/Source/devtools/front_end/components/ObjectPopoverHelper.js
index e2757c4c483f35e5ea6dff67c54662ae9d3ca41d..0c19759d2154f78bac8ef195c0eba1bacaae46e6 100644
--- a/Source/devtools/front_end/components/ObjectPopoverHelper.js
+++ b/Source/devtools/front_end/components/ObjectPopoverHelper.js
@@ -163,7 +163,9 @@ WebInspector.ObjectPopoverHelper.prototype = {
}
if (result.customPreview()) {
- popoverContentElement = WebInspector.CustomPreviewSection.createInShadow(result, true);
+ var customPreviewComponent = new WebInspector.CustomPreviewComponent(result);
+ customPreviewComponent.expandIfPossible();
+ popoverContentElement = customPreviewComponent.element;
} else {
popoverContentElement = createElement("div");
this._titleElement = popoverContentElement.createChild("div", "monospace");

Powered by Google App Engine
This is Rietveld 408576698