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:
parent
7d226e8105
commit
92cd4ef616
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user