mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 387466 - Bug 309020 (SVG references breaks when used inside XBL) has regressed. r+sr=roc,a1.9=blocking1.9+
This commit is contained in:
parent
e04ae113c0
commit
8d9611f21d
@ -61,6 +61,7 @@ REQUIRES = xpcom \
|
||||
necko \
|
||||
xpconnect \
|
||||
webshell \
|
||||
xuldoc \
|
||||
unicharutil \
|
||||
imglib2 \
|
||||
docshell \
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include "nsIDOMEventTarget.h"
|
||||
#include "nsIDOMMutationEvent.h"
|
||||
#include "nsMutationEvent.h"
|
||||
#include "nsXBLPrototypeBinding.h"
|
||||
#include "nsBindingManager.h"
|
||||
#include "nsXBLBinding.h"
|
||||
#include "nsStyleConsts.h"
|
||||
@ -811,6 +812,19 @@ nsSVGElement::UpdateContentStyleRule()
|
||||
|
||||
nsCOMPtr<nsIURI> baseURI = GetBaseURI();
|
||||
nsIURI *docURI = doc->GetDocumentURI();
|
||||
|
||||
nsIContent* bindingParent = GetBindingParent();
|
||||
if (bindingParent) {
|
||||
nsXBLBinding* binding = doc->BindingManager()->GetBinding(bindingParent);
|
||||
if (binding) {
|
||||
// XXX sXBL/XBL2 issue
|
||||
// If this is an anonymous XBL element use the binding
|
||||
// document for the base URI.
|
||||
// XXX Will fail with xml:base
|
||||
baseURI = binding->PrototypeBinding()->DocURI();
|
||||
}
|
||||
}
|
||||
|
||||
nsICSSLoader* cssLoader = doc->CSSLoader();
|
||||
|
||||
nsCSSDeclaration* declaration = nsnull;
|
||||
|
Loading…
Reference in New Issue
Block a user