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

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

Issue 2703143002: [DevTools] Prepare to move Popover to shadow DOM. (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js b/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
index be78fcf66d4ac57ce1a2e18ac6fbf14b3f43a38d..587a499ae0d3a652a875ea7c218a1f2f6e2e934a 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
@@ -128,6 +128,7 @@ Components.ObjectPopoverHelper = class extends UI.PopoverHelper {
if (result.type !== 'object') {
popoverContentElement = createElement('span');
UI.appendStyle(popoverContentElement, 'components/objectValue.css');
+ UI.appendStyle(popoverContentElement, 'components/objectPopover.css');
var valueElement = popoverContentElement.createChild('span', 'monospace object-value-' + result.type);
valueElement.style.whiteSpace = 'pre';
@@ -155,10 +156,11 @@ Components.ObjectPopoverHelper = class extends UI.PopoverHelper {
popoverContentElement = customPreviewComponent.element;
} else {
popoverContentElement = createElement('div');
+ UI.appendStyle(popoverContentElement, 'components/objectPopover.css');
this._titleElement = popoverContentElement.createChild('div', 'monospace');
- this._titleElement.createChild('span', 'source-frame-popover-title').textContent = description;
+ this._titleElement.createChild('span', 'object-popover-title').textContent = description;
var section = new Components.ObjectPropertiesSection(result, '', this._lazyLinkifier());
- section.element.classList.add('source-frame-popover-tree');
+ section.element.classList.add('object-popover-tree');
section.titleLessMode();
popoverContentElement.appendChild(section.element);
}

Powered by Google App Engine
This is Rietveld 408576698