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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 2349973005: DevTools: move repeatCountElement from contentElement into wrapperElement (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
index dfad8895ea07edd5c4bc1b3f0e30c0a0b15271c4..529908ad52b8961870447fb0320691807e3c79fa 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -958,9 +958,6 @@ WebInspector.ConsoleViewMessage.prototype = {
element.appendChild(this.formattedMessage());
- if (this._repeatCount > 1)
- this._showRepeatCountElement();
-
this.updateTimestamp(WebInspector.moduleSetting("consoleTimestampsEnabled").get());
return this._element;
@@ -1015,6 +1012,8 @@ WebInspector.ConsoleViewMessage.prototype = {
}
this._wrapperElement.appendChild(this.contentElement());
+ if (this._repeatCount > 1)
+ this._showRepeatCountElement();
},
resetIncrementRepeatCount: function()
@@ -1053,7 +1052,7 @@ WebInspector.ConsoleViewMessage.prototype = {
default:
this._repeatCountElement.type = "info";
}
- this._element.insertBefore(this._repeatCountElement, this._element.firstChild);
+ this._wrapperElement.insertBefore(this._repeatCountElement, this._element);
this._element.classList.add("repeated-message");
}
this._repeatCountElement.textContent = this._repeatCount;

Powered by Google App Engine
This is Rietveld 408576698