Bug 1494162 - Part 52: Don't show the empty message in the CssRuleView constructor. r=pbro

We will eventually call showEmpty() when an element is selected if there are no rules.
This improves the perceive performance of the rules view because it doesn't have
a flicker of the empty text to the css rules.
This commit is contained in:
Gabriel Luong 2018-10-04 08:52:52 -04:00
parent 110b41a47f
commit c07636d479

View File

@ -179,8 +179,6 @@ function CssRuleView(inspector, document, store, pageStyle) {
this.showUserAgentStyles = Services.prefs.getBoolPref(PREF_UA_STYLES);
this._showEmpty();
// Add the tooltips and highlighters to the view
this.tooltips = new TooltipsOverlay(this);
}