mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Bug 514120. Don't bother looking for XBL bindings on non-XUL nodes in display:none subtrees. r=sicking,enn
This commit is contained in:
parent
967ffdcab4
commit
88806f4b54
@ -7656,11 +7656,14 @@ static PRBool
|
||||
GetBindingURL(nsIContent *aContent, nsIDocument *aDocument,
|
||||
nsCSSValue::URL **aResult)
|
||||
{
|
||||
// If we have a frame the frame has already loaded the binding.
|
||||
// If we have a frame the frame has already loaded the binding. And
|
||||
// otherwise, don't do anything else here unless we're dealing with
|
||||
// XUL.
|
||||
nsIPresShell *shell = aDocument->GetPrimaryShell();
|
||||
nsIFrame *frame;
|
||||
if (!shell ||
|
||||
(frame = shell->GetPrimaryFrameFor(aContent))) {
|
||||
(frame = shell->GetPrimaryFrameFor(aContent)) ||
|
||||
!aContent->IsXUL()) {
|
||||
*aResult = nsnull;
|
||||
|
||||
return PR_TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user