зеркало из https://github.com/mozilla/gecko-dev.git
Bug 220215 use XPCNativeWrapper instead of directly calling Components.lookupMethod r=caillon sr=bz
This commit is contained in:
Родитель
398254c10e
Коммит
bc58e21f69
|
@ -335,7 +335,7 @@ function StyleRuleView(aObject)
|
|||
this.mRules = this.mDOMUtils.getCSSStyleRules(aObject);
|
||||
if (aObject.hasAttribute("style"))
|
||||
this.mStyleAttribute =
|
||||
Components.lookupMethod(aObject, "style").call(aObject);
|
||||
new XPCNativeWrapper(aObject, "style").style;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
<script type="application/x-javascript" src="chrome://inspector/content/jsutil/xul/inBaseTreeView.js"/>
|
||||
<script type="application/x-javascript" src="chrome://inspector/content/viewers/styleRules/styleRules.js"/>
|
||||
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/XPCNativeWrapper.js"/>
|
||||
<script type="application/x-javascript" src="chrome://inspector/content/utils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://inspector/content/jsutil/xpcom/XPCU.js"/>
|
||||
<script type="application/x-javascript" src="chrome://inspector/content/jsutil/rdf/RDFU.js"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче