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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js

Issue 2703143002: [DevTools] Prepare to move Popover to shadow DOM. (Closed)
Patch Set: fix 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/source_frame/UISourceCodeFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js b/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js
index 1046c64a0bcb029e6739a556a2248ead9e9c16b5..c9f57c925e5bd3f8db65e0bfeb759582121ae54e 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js
@@ -494,9 +494,10 @@ SourceFrame.UISourceCodeFrame.RowMessage = class {
this.element = createElementWithClass('div', 'text-editor-row-message');
this._icon = this.element.createChild('label', '', 'dt-icon-label');
this._icon.type = SourceFrame.UISourceCodeFrame._iconClassPerLevel[message.level()];
- this._repeatCountElement = this.element.createChild('label', 'message-repeat-count hidden', 'dt-small-bubble');
+ this._repeatCountElement =
+ this.element.createChild('label', 'text-editor-row-message-repeat-count hidden', 'dt-small-bubble');
this._repeatCountElement.type = SourceFrame.UISourceCodeFrame._bubbleTypePerLevel[message.level()];
- var linesContainer = this.element.createChild('div', 'text-editor-row-message-lines');
+ var linesContainer = this.element.createChild('div');
var lines = this._message.text().split('\n');
for (var i = 0; i < lines.length; ++i) {
var messageLine = linesContainer.createChild('div');
@@ -579,6 +580,7 @@ SourceFrame.UISourceCodeFrame.RowMessageBucket = class {
*/
messagesDescription() {
this._messagesDescriptionElement.removeChildren();
+ UI.appendStyle(this._messagesDescriptionElement, 'source_frame/messagesPopover.css');
for (var i = 0; i < this._messages.length; ++i)
this._messagesDescriptionElement.appendChild(this._messages[i].element);

Powered by Google App Engine
This is Rietveld 408576698