mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #2490 - Part 20: Remove the stuff that was added temporarily to deal with a mix of WebIDL and non-WebIDL rules.
This commit is contained in:
parent
7fb5d53a79
commit
641b556c53
4 changed files with 0 additions and 59 deletions
|
|
@ -67,7 +67,6 @@
|
|||
#include "nsIDOMEventTarget.h"
|
||||
|
||||
// CSS related includes
|
||||
#include "nsCSSRules.h"
|
||||
#include "nsIDOMCSSRule.h"
|
||||
#include "nsMemory.h"
|
||||
|
||||
|
|
@ -1890,31 +1889,6 @@ nsEventTargetSH::PreserveWrapper(nsISupports *aNative)
|
|||
target->PreserveWrapper(aNative);
|
||||
}
|
||||
|
||||
// CSS rule helper
|
||||
NS_IMETHODIMP
|
||||
nsCSSRuleSH::PreCreate(nsISupports *nativeObj, JSContext *cx,
|
||||
JSObject *aGlobalObj, JSObject **parentObj)
|
||||
{
|
||||
JS::Rooted<JSObject*> globalObj(cx, aGlobalObj);
|
||||
nsCOMPtr<nsIDOMCSSRule> rule = do_QueryInterface(nativeObj);
|
||||
if (!rule) {
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
css::Rule* cssRule = rule->GetCSSRule();
|
||||
nsIDocument* doc = cssRule->GetDocument();
|
||||
if (!doc) {
|
||||
*parentObj = globalObj;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsIGlobalObject* global = doc->GetScopeObject();
|
||||
if (!global) {
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
*parentObj = global->GetGlobalJSObject();
|
||||
return *parentObj ? NS_OK : NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// nsIDOMEventListener::HandleEvent() 'this' converter helper
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(nsEventListenerThisTranslator)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue