XBL expects computed -moz-binding to not have "url()" and to be empty

string for no binding.  Bug 128428 redux, patch by
caillon@returnzero.com (Christopher Aillon), r=bzbarsky, sr=shaver,
a=brendan


git-svn-id: svn://10.0.0.236/trunk@116460 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2002-03-13 02:33:09 +00:00
parent 7d226e8105
commit 92cd4ef616
2 changed files with 8 additions and 4 deletions

View File

@ -761,11 +761,13 @@ nsComputedDOMStyle::GetBinding(nsIFrame *aFrame,
GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&)display, aFrame);
// Break this temporarily to prevent assertions.
// Add a new method to let XBL and others do this the right way in bug 129960
if (display && !display->mBinding.IsEmpty()) {
val->SetURI(display->mBinding);
val->SetString(display->mBinding);
}
else {
val->SetString(NS_LITERAL_STRING("none"));
val->SetString(NS_LITERAL_STRING(""));
}
return CallQueryInterface(val, &aValue);

View File

@ -761,11 +761,13 @@ nsComputedDOMStyle::GetBinding(nsIFrame *aFrame,
GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&)display, aFrame);
// Break this temporarily to prevent assertions.
// Add a new method to let XBL and others do this the right way in bug 129960
if (display && !display->mBinding.IsEmpty()) {
val->SetURI(display->mBinding);
val->SetString(display->mBinding);
}
else {
val->SetString(NS_LITERAL_STRING("none"));
val->SetString(NS_LITERAL_STRING(""));
}
return CallQueryInterface(val, &aValue);